def test_allocation_ceilings_defaults():
    from fxhnt.config import Settings
    s = Settings()
    assert s.allocation.capital_ceiling_paper == 1_000_000.0
    assert s.allocation.capital_ceiling_live == 35_000.0


def test_allocation_ceilings_env_override(monkeypatch):
    from fxhnt.config import Settings
    monkeypatch.setenv("FXHNT_ALLOCATION_CAPITAL_CEILING_PAPER", "500000")
    monkeypatch.setenv("FXHNT_ALLOCATION_CAPITAL_CEILING_LIVE", "50000")
    s = Settings()
    assert s.allocation.capital_ceiling_paper == 500_000.0
    assert s.allocation.capital_ceiling_live == 50_000.0
