Bläddra i källkod

Fix tests/labelme_tests/test_app.py

Kentaro Wada 5 år sedan
förälder
incheckning
f20a942569
1 ändrade filer med 8 tillägg och 2 borttagningar
  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()