浏览代码

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),
         (986, 742),
         (1184, 102),
         (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.loadLabels(shapes)
     win.saveFile()
     win.saveFile()