Move project lock until all steps in project open are completed (#1977)

This commit is contained in:
Veronica Berglyd Olsen
2024-07-14 16:28:09 +02:00
parent 742f84576e
commit a43bd5a50e
3 changed files with 9 additions and 1 deletions
+2
View File
@@ -142,7 +142,9 @@ def testCoreStorage_InitProjectStorage(monkeypatch, mockGUI, fncPath, mockRnd):
storage.clear()
# Open twice, where second should fail due to lockfile
# Note that locking is only possible after a successful open
assert storage.initProjectStorage(fncPath) == NWStorageOpen.READY
storage.lockSession()
assert storage.initProjectStorage(fncPath) == NWStorageOpen.LOCKED
assert isinstance(storage.lockStatus, list)
assert len(storage.lockStatus) == 4