Fix bug in status label import

This commit is contained in:
Veronica Berglyd Olsen
2024-12-31 00:59:25 +01:00
parent 5911c43b5b
commit b4f1d0ec77
2 changed files with 3 additions and 0 deletions
@@ -362,6 +362,7 @@ def testDlgProjSettings_StatusImportExport(qtbot, monkeypatch, nwGUI, projPath,
status._importLabels()
assert status.listBox.topLevelItemCount() == 4
assert status.changed is False
# Import File
with monkeypatch.context() as mp:
@@ -369,6 +370,7 @@ def testDlgProjSettings_StatusImportExport(qtbot, monkeypatch, nwGUI, projPath,
status._importLabels()
assert status.listBox.topLevelItemCount() == 8
assert status.changed is True
item4 = status.listBox.topLevelItem(4)
assert item4 is not None