Make the test a little safer

This commit is contained in:
Veronica Berglyd Olsen
2024-10-31 00:11:32 +01:00
parent 0ba0674b9e
commit ca2b509d54
+2 -1
View File
@@ -840,7 +840,8 @@ def testGuiMain_OpenClose(qtbot, monkeypatch, nwGUI, projPath, fncPath, mockRnd)
CONFIG.backupOnClose = True
assert nwGUI.openProject(projPath) is True
nwGUI.closeProject()
assert len(list(backDir.glob("*.zip"))) == 1
assert backDir.exists()
assert len(list(backDir.iterdir())) > 0
@pytest.mark.gui