Move idle time records to the shared class

This commit is contained in:
Veronica Berglyd Olsen
2023-08-20 21:33:04 +02:00
parent 777b1a15fd
commit 0b4cfd0037
5 changed files with 44 additions and 29 deletions
+5 -3
View File
@@ -354,10 +354,12 @@ def testCoreTree_CheckConsistency(caplog: pytest.LogCaptureFixture, mockGUI, fnc
assert itemX.itemClass == nwItemClass.NOVEL
assert itemX.itemName == "[Recovered] Stuff"
# If the tree is empty, there is nowhere to add any of the 4 files
# If the tree is empty, a new root folder is created
theProject.tree.clear()
assert theProject.tree.checkConsistency("Recovered") == (4, 0)
assert len(theProject.tree) == 0
assert theProject.tree.checkConsistency("Recovered") == (4, 4)
assert len(theProject.tree) == 5
nHandle = theProject.tree.findRoot(nwItemClass.NOVEL)
assert theProject.tree[nHandle].itemName == "Recovered" # type: ignore
# END Test testCoreTree_CheckConsistency