feat: collect Bybit orderbook observations for training
This commit is contained in:
@@ -180,3 +180,12 @@ def test_load_settings_rejects_unknown_fallback_mode(tmp_path, monkeypatch) -> N
|
||||
|
||||
with pytest.raises(ValueError, match="TIME_SERIES_FALLBACK_MODE"):
|
||||
load_settings(env_file)
|
||||
|
||||
|
||||
def test_load_settings_rejects_non_positive_observation_interval(tmp_path, monkeypatch) -> None:
|
||||
monkeypatch.delenv("MARKET_OBSERVATION_SAMPLE_SECONDS", raising=False)
|
||||
env_file = tmp_path / ".env"
|
||||
env_file.write_text("MARKET_OBSERVATION_SAMPLE_SECONDS=0\n", encoding="utf-8")
|
||||
|
||||
with pytest.raises(ValueError, match="MARKET_OBSERVATION_SAMPLE_SECONDS"):
|
||||
load_settings(env_file)
|
||||
|
||||
Reference in New Issue
Block a user