fix: keep paper trading active without approved model

This commit is contained in:
Курнат Андрей
2026-07-15 00:23:03 +03:00
parent 1f2fb011a7
commit d0869b5d29
10 changed files with 188 additions and 14 deletions
+9
View File
@@ -171,3 +171,12 @@ def test_load_settings_rejects_inconsistent_exposure_limits(tmp_path, monkeypatc
with pytest.raises(ValueError, match="MAX_SYMBOL_EXPOSURE_USDT"):
load_settings(env_file)
def test_load_settings_rejects_unknown_fallback_mode(tmp_path, monkeypatch) -> None:
monkeypatch.delenv("TIME_SERIES_FALLBACK_MODE", raising=False)
env_file = tmp_path / ".env"
env_file.write_text("TIME_SERIES_FALLBACK_MODE=force-trades\n", encoding="utf-8")
with pytest.raises(ValueError, match="TIME_SERIES_FALLBACK_MODE"):
load_settings(env_file)