Move the item index into a wrapper class and combine the access functions

This commit is contained in:
Veronica Berglyd Olsen
2022-05-29 18:58:32 +02:00
parent 347d34bf83
commit 77e50a6cee
5 changed files with 440 additions and 297 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ def testGuiViewer_Main(qtbot, monkeypatch, nwGUI, nwLipsum):
# Rebuild the index
nwGUI.mainMenu.aRebuildIndex.activate(QAction.Trigger)
assert nwGUI.theProject.index._tags != {}
assert nwGUI.theProject.index._items != {}
assert nwGUI.theProject.index._itemIndex._items != {}
# Select a document in the project tree
nwGUI.treeView.setSelectedHandle("88243afbe5ed8")