Procházet zdrojové kódy

Fix tests/labelme_tests/test_app.py

Kentaro Wada před 5 roky
rodič
revize
f20a942569
1 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 8 2
      tests/labelme_tests/test_app.py

+ 8 - 2
tests/labelme_tests/test_app.py

@@ -56,8 +56,14 @@ def test_MainWindow_annotate_jpg(qtbot):
         (986, 742),
         (1184, 102),
     ]
-    shape = label, points, None, None, 'polygon', {}
-    shapes = [shape]
+    shapes = [dict(
+        label=label,
+        points=points,
+        line_color=None,
+        fill_color=None,
+        shape_type='polygon',
+        flags={}
+    )]
     win.loadLabels(shapes)
     win.saveFile()