diff --git a/tests/unit/utils/test_download.py b/tests/unit/utils/test_download.py index a52e3f3e..7e886703 100644 --- a/tests/unit/utils/test_download.py +++ b/tests/unit/utils/test_download.py @@ -367,7 +367,7 @@ def test_get_download_path__auto_dir(): path = get_download_path(file_name="file_name.zip") # Assert - assert path == Path(tempfile.gettempdir()).absolute() / "file_name.zip" + assert path == Path(tempfile.gettempdir()).resolve() / "file_name.zip" def test_get_download_path__auto_file_name(temp_dir: Path): diff --git a/tests/unit/utils/test_zip_files.py b/tests/unit/utils/test_zip_files.py index 5f745e3a..7c9d7e35 100644 --- a/tests/unit/utils/test_zip_files.py +++ b/tests/unit/utils/test_zip_files.py @@ -21,7 +21,7 @@ @pytest.fixture() def temp_dir(): with tempfile.TemporaryDirectory() as tmp: - yield Path(tmp) + yield Path(tmp).resolve() @patch("power_grid_model_io.utils.download.tqdm")