Files
fxhnt/tests/unit/test_factory_settings.py
2026-06-14 19:52:26 +02:00

16 lines
490 B
Python

"""FactorySettings: safe diversification + governance defaults."""
from __future__ import annotations
from fxhnt.config import FactorySettings
def test_safe_defaults() -> None:
s = FactorySettings()
assert 0.0 < s.max_tail_corr < 1.0
assert s.min_marginal_sharpe >= 0.0
assert s.tail_frac > 0.0 and s.tail_frac <= 0.5
assert s.max_deployed_sleeves >= 1
assert s.max_new_deploys_per_cycle >= 1
assert s.kill_switch is False
assert s.min_forward_days >= 10