diff --git a/tests/futures/test_downloader.py b/tests/futures/test_downloader.py index 7f0eba0..3c8581e 100644 --- a/tests/futures/test_downloader.py +++ b/tests/futures/test_downloader.py @@ -634,7 +634,7 @@ def test_load_definitions_config(self, temp_storage): products, storage_path, defn_config = load_definitions_config(config_file) assert products == ["ES", "CL"] - assert storage_path == Path("/tmp/test") + assert storage_path == Path("/tmp/test").resolve() assert defn_config.strategy == "yearly_snapshots" assert defn_config.snapshot_dates == ["2024-01-02"] assert defn_config.output_file == "defs.parquet" diff --git a/tests/test_cot.py b/tests/test_cot.py index e5b6b21..9efd093 100644 --- a/tests/test_cot.py +++ b/tests/test_cot.py @@ -173,7 +173,7 @@ def test_custom_config(self): assert config.products == ["ES", "CL"] assert config.start_year == 2018 assert config.end_year == 2023 - assert config.storage_path == Path("/tmp/cot") + assert config.storage_path == Path("/tmp/cot").resolve() assert config.include_options is True def test_get_years(self): @@ -211,7 +211,7 @@ def test_load_from_yaml(self, tmp_path: Path): assert config.products == ["ES", "CL", "GC"] assert config.start_year == 2019 assert config.end_year == 2024 - assert config.storage_path == Path("/tmp/cot_data") + assert config.storage_path == Path("/tmp/cot_data").resolve() assert config.include_options is True diff --git a/tests/test_crypto_downloader.py b/tests/test_crypto_downloader.py index 2c8c3c2..8473f0b 100644 --- a/tests/test_crypto_downloader.py +++ b/tests/test_crypto_downloader.py @@ -123,7 +123,7 @@ def manager(self, config): def test_init(self, manager, temp_storage): """Test initialization.""" - assert manager.config.storage_path == temp_storage + assert manager.config.storage_path == temp_storage.resolve() assert manager._provider is None assert temp_storage.exists() diff --git a/tests/test_etf_downloader.py b/tests/test_etf_downloader.py index f4cd022..96a0407 100644 --- a/tests/test_etf_downloader.py +++ b/tests/test_etf_downloader.py @@ -120,7 +120,7 @@ def manager(self, config): def test_init(self, manager, temp_storage): """Test initialization.""" - assert manager.config.storage_path == temp_storage + assert manager.config.storage_path == temp_storage.resolve() assert manager._provider is None assert temp_storage.exists() diff --git a/tests/test_fama_french_provider.py b/tests/test_fama_french_provider.py index 1668dcc..550910d 100644 --- a/tests/test_fama_french_provider.py +++ b/tests/test_fama_french_provider.py @@ -32,7 +32,7 @@ def test_custom_cache_path(self): cache_path = Path(tmpdir) / "custom_cache" provider = FamaFrenchProvider(cache_path=cache_path) - assert provider.cache_path == cache_path + assert provider.cache_path == cache_path.resolve() assert cache_path.exists() def test_disable_cache(self): @@ -132,10 +132,10 @@ def test_get_cache_path(self): provider = FamaFrenchProvider(cache_path=tmpdir) path = provider._get_cache_path("ff3", "monthly") - assert path == Path(tmpdir) / "ff3_monthly.parquet" + assert path == Path(tmpdir).resolve() / "ff3_monthly.parquet" path = provider._get_cache_path("ff5", "daily") - assert path == Path(tmpdir) / "ff5_daily.parquet" + assert path == Path(tmpdir).resolve() / "ff5_daily.parquet" def test_clear_cache(self): """Test clear_cache removes cached files.""" diff --git a/tests/test_macro_downloader.py b/tests/test_macro_downloader.py index 5751b33..38874c9 100644 --- a/tests/test_macro_downloader.py +++ b/tests/test_macro_downloader.py @@ -100,7 +100,7 @@ def manager(self, config): def test_init(self, manager, temp_storage): """Test initialization.""" - assert manager.config.storage_path == temp_storage + assert manager.config.storage_path == temp_storage.resolve() assert manager._provider is None assert temp_storage.exists()