Adds the `warehouse` branch to `_data_provider` (the cutover seam for hunt/run --data-source warehouse), plus two new commands: `warehouse-ingest` (bronze→silver→gold for futures and crypto) and `warehouse-catalog` (per-symbol inventory/freshness view of the SSOT). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
534 B
Python
14 lines
534 B
Python
"""The data_source seam selects the warehouse SSOT provider."""
|
|
from __future__ import annotations
|
|
|
|
from fxhnt.cli import _data_provider
|
|
from fxhnt.config import Settings
|
|
|
|
|
|
def test_data_provider_warehouse_returns_warehouse_provider(tmp_path) -> None:
|
|
from fxhnt.adapters.warehouse.price_provider import WarehousePriceProvider
|
|
s = Settings(warehouse_path=str(tmp_path / "wh.duckdb"))
|
|
provider = _data_provider("warehouse", s)
|
|
assert isinstance(provider, WarehousePriceProvider)
|
|
assert provider.name == "warehouse"
|