From 4f137466c5bbaf4e2b28e985a1f8d5cfaab16b57 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Tue, 31 Dec 2024 00:38:02 +0100 Subject: [PATCH] Fix test for Windows --- tests/test_dialogs/test_dlg_projectsettings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_dialogs/test_dlg_projectsettings.py b/tests/test_dialogs/test_dlg_projectsettings.py index 435a767a..93714a81 100644 --- a/tests/test_dialogs/test_dlg_projectsettings.py +++ b/tests/test_dialogs/test_dlg_projectsettings.py @@ -348,12 +348,12 @@ def testDlgProjSettings_StatusImportExport(qtbot, monkeypatch, nwGUI, projPath, status._exportLabels() assert expFile.is_file() is True - assert expFile.read_text() == ( - "SQUARE,#646464,New\n" - "SQUARE,#c83200,Note\n" - "SQUARE,#c89600,Draft\n" - "SQUARE,#32c800,Finished\n" - ) + assert expFile.read_text().split() == [ + "SQUARE,#646464,New", + "SQUARE,#c83200,Note", + "SQUARE,#c89600,Draft", + "SQUARE,#32c800,Finished", + ] # Import Error with monkeypatch.context() as mp: