Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/futures/test_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion tests/test_crypto_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion tests/test_etf_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
6 changes: 3 additions & 3 deletions tests/test_fama_french_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_macro_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down