from fxhnt.config import Settings


def test_paper_capital_default():
    s = Settings()
    assert s.paper_capital == 100_000.0


def test_paper_validation_envelope_default_off():
    assert Settings().paper_validation.envelope == 0.0


def test_paper_validation_envelope_env_override(monkeypatch):
    monkeypatch.setenv("FXHNT_PAPER_VALIDATION_ENVELOPE", "1000000")
    assert Settings().paper_validation.envelope == 1_000_000.0
