Преглед изворни кода

Fix tests/labelme_tests/test_app.py

Kentaro Wada пре 5 година
родитељ
комит
f20a942569
1 измењених фајлова са 8 додато и 2 уклоњено
  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()