From 263d5d53a18a7110719f1a4da4e52a731b5e94f6 Mon Sep 17 00:00:00 2001 From: Julia Schessner Date: Fri, 13 Sep 2024 11:44:56 +0200 Subject: [PATCH] Use Path for tested page --- tests/gui/test_02_import_data.py | 2 +- tests/gui/test_03_data_overview.py | 2 +- tests/gui/test_04_preprocessing.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/gui/test_02_import_data.py b/tests/gui/test_02_import_data.py index fb52ee82..08d905b2 100644 --- a/tests/gui/test_02_import_data.py +++ b/tests/gui/test_02_import_data.py @@ -4,7 +4,7 @@ from .conftest import APP_FOLDER, data_buf, metadata_buf -TESTED_PAGE = f"{APP_FOLDER}/pages/02_Import Data.py" +TESTED_PAGE = APP_FOLDER / "pages/02_Import Data.py" def test_page_02_loads_without_input(): diff --git a/tests/gui/test_03_data_overview.py b/tests/gui/test_03_data_overview.py index 109f4584..95c12354 100644 --- a/tests/gui/test_03_data_overview.py +++ b/tests/gui/test_03_data_overview.py @@ -3,7 +3,7 @@ from unittest.mock import MagicMock, patch from .conftest import create_dataset_alphapept, APP_FOLDER -TESTED_PAGE = f"{APP_FOLDER}/pages/03_Data Overview.py" +TESTED_PAGE = APP_FOLDER / "pages/03_Data Overview.py" def test_page_03_loads_without_input(): diff --git a/tests/gui/test_04_preprocessing.py b/tests/gui/test_04_preprocessing.py index bbe6a78b..56b94229 100644 --- a/tests/gui/test_04_preprocessing.py +++ b/tests/gui/test_04_preprocessing.py @@ -4,7 +4,7 @@ from .conftest import create_dataset_alphapept, APP_FOLDER -TESTED_PAGE = f"{APP_FOLDER}/pages/03_Preprocessing.py" +TESTED_PAGE = APP_FOLDER / "pages/03_Preprocessing.py" def test_page_04_loads_without_input():