Improve test coverage

This commit is contained in:
Veronica Berglyd Olsen
2024-03-03 16:31:02 +01:00
parent 57b3aa2032
commit 8859fc7b6b
2 changed files with 31 additions and 7 deletions
+3
View File
@@ -421,6 +421,9 @@ def testCoreTree_Methods(monkeypatch, mockGUI, mockItems):
assert tree.getItemPath("c000000000001") == [
"c000000000001", "b000000000001", "a000000000001"
]
assert tree.getItemPath("c000000000001", asName=True) == [
"Chapter One", "Act One", "Novel"
]
# Cause recursion error
with monkeypatch.context() as mp: