fix: close remaining ingestion review gaps
This commit is contained in:
@@ -5,6 +5,8 @@ from types import SimpleNamespace
|
||||
import pytest
|
||||
|
||||
from app.scheduler import (
|
||||
_DAILY_PIPELINE_STEPS,
|
||||
_NEAR_CLOSE_PIPELINE_STEPS,
|
||||
_consume_backtest_options,
|
||||
_consume_backtest_target_model,
|
||||
_parse_frequency,
|
||||
@@ -43,6 +45,14 @@ def test_manual_backtest_options_are_one_shot_and_default_back_to_weekly():
|
||||
assert _consume_backtest_options() == ("production_gtl", "weekly")
|
||||
|
||||
|
||||
def test_only_near_close_fetch_skips_redundant_sr_refresh():
|
||||
assert dict(_DAILY_PIPELINE_STEPS)["data_collector"] == "collect_ohlcv"
|
||||
assert (
|
||||
dict(_NEAR_CLOSE_PIPELINE_STEPS)["data_collector"]
|
||||
== "collect_ohlcv_for_scan"
|
||||
)
|
||||
|
||||
|
||||
class TestParseFrequency:
|
||||
def test_hourly(self):
|
||||
assert _parse_frequency("hourly") == {"hours": 1}
|
||||
|
||||
Reference in New Issue
Block a user