Simplify how the project tree is populated

This commit is contained in:
Veronica Berglyd Olsen
2024-07-25 20:47:14 +02:00
parent 06aa2e6c07
commit 33497bc92d
4 changed files with 3 additions and 11 deletions
@@ -161,7 +161,7 @@ def testDlgProjSettings_StatusImport(qtbot, monkeypatch, nwGUI, projPath, mockRn
project.tree[hCharNote].setImport(C.iMajor) # type: ignore
project.tree[hWorldNote].setImport(C.iMain) # type: ignore
nwGUI.rebuildTrees()
nwGUI.projView.populateTree()
project.countStatus()
assert [e.count for _, e in project.data.itemStatus.iterItems()] == [2, 0, 2, 1]