Make the test a little safer
This commit is contained in:
@@ -840,7 +840,8 @@ def testGuiMain_OpenClose(qtbot, monkeypatch, nwGUI, projPath, fncPath, mockRnd)
|
|||||||
CONFIG.backupOnClose = True
|
CONFIG.backupOnClose = True
|
||||||
assert nwGUI.openProject(projPath) is True
|
assert nwGUI.openProject(projPath) is True
|
||||||
nwGUI.closeProject()
|
nwGUI.closeProject()
|
||||||
assert len(list(backDir.glob("*.zip"))) == 1
|
assert backDir.exists()
|
||||||
|
assert len(list(backDir.iterdir())) > 0
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.gui
|
@pytest.mark.gui
|
||||||
|
|||||||
Reference in New Issue
Block a user