Files
fxhnt/tests/unit/test_binance_settings.py
2026-06-14 16:45:01 +02:00

14 lines
393 B
Python

"""BinanceSettings: env-driven, safe defaults (testnet on, live off)."""
from __future__ import annotations
from fxhnt.config import BinanceSettings
def test_safe_defaults() -> None:
s = BinanceSettings()
assert s.testnet is True
assert s.allow_live is False
assert s.kill_switch is False
assert 0.0 < s.kelly_cap <= 1.0
assert s.gross_cap > 0.0 and s.leverage >= 1