fix: keep paper trading active without approved model
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user