File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ def test_MainWindow_open_json(qtbot):
55
55
win .close ()
56
56
57
57
58
- @pytest .mark .gui
59
- def test_MainWindow_open_dir (qtbot ):
58
+ def create_MainWindow_with_directory (qtbot ):
60
59
directory = osp .join (data_dir , "raw" )
61
60
win = labelme .app .MainWindow (filename = directory )
62
61
qtbot .addWidget (win )
@@ -66,13 +65,13 @@ def test_MainWindow_open_dir(qtbot):
66
65
67
66
@pytest .mark .gui
68
67
def test_MainWindow_openNextImg (qtbot ):
69
- win = test_MainWindow_open_dir (qtbot )
68
+ win = create_MainWindow_with_directory (qtbot )
70
69
win .openNextImg ()
71
70
72
71
73
72
@pytest .mark .gui
74
73
def test_MainWindow_openPrevImg (qtbot ):
75
- win = test_MainWindow_open_dir (qtbot )
74
+ win = create_MainWindow_with_directory (qtbot )
76
75
win .openNextImg ()
77
76
78
77
You can’t perform that action at this time.
0 commit comments