"""Settings expose a warehouse_path and ensure_dirs creates its parent."""
from __future__ import annotations

from fxhnt.config import Settings


def test_settings_has_warehouse_path_default() -> None:
    s = Settings()
    assert s.warehouse_path.endswith("warehouse.duckdb")


def test_ensure_dirs_creates_warehouse_parent(tmp_path) -> None:
    target = tmp_path / "wh" / "warehouse.duckdb"
    s = Settings(warehouse_path=str(target))
    s.ensure_dirs()
    assert target.parent.is_dir()
