From 925ead775cf4c6fc6bd350535847c0e1b9b595c8 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 27 Jul 2023 00:33:23 +0200 Subject: [PATCH] Try to fix issue with fickly test --- tests/test_core/test_core_project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_core/test_core_project.py b/tests/test_core/test_core_project.py index cf76b7f7..410d2e97 100644 --- a/tests/test_core/test_core_project.py +++ b/tests/test_core/test_core_project.py @@ -617,10 +617,10 @@ def testCoreProject_Backup(monkeypatch, mockGUI, fncPath, tstPaths): # Test correct settings assert theProject.backupProject(doNotify=True) is True - theFiles = list((tstPaths.tmpDir / "Test Minimal").iterdir()) + theFiles = sorted((tstPaths.tmpDir / "Test Minimal").iterdir()) assert len(theFiles) in (1, 2) # Sometimes 2 due to clock tick - theZip = theFiles[-1] + theZip = theFiles[0] assert theZip.name.startswith("Test Minimal") assert theZip.suffix == ".zip"