Update tests

This commit is contained in:
Veronica Berglyd Olsen
2024-04-14 23:59:57 +02:00
parent 70033cb0f3
commit ec6a5712e5
5 changed files with 17 additions and 7 deletions
+7 -1
View File
@@ -127,7 +127,13 @@ def testCoreIndex_LoadSave(qtbot, monkeypatch, prjLipsum, mockGUI, tstPaths):
assert index.indexBroken is True
# Write an index file that passes loading, but is still empty
writeFile(projFile, '{"novelWriter.tagsIndex": {}, "novelWriter.itemIndex": {}}')
writeFile(projFile, (
'{'
'"novelWriter.tagsIndex": {}, '
'"novelWriter.itemIndex": {}, '
'"novelWriter.textIndex": {}'
'}'
))
assert index.loadIndex() is True
assert index.indexBroken is False