Separate chart S/R from gate target ladder
This commit is contained in:
@@ -31,9 +31,11 @@ async def test_scan_proceeds_when_score_refresh_fails(session, monkeypatch):
|
||||
raise RuntimeError("scoring unavailable")
|
||||
|
||||
scanned: list[str] = []
|
||||
primary_floors: list[float] = []
|
||||
|
||||
async def _fake_scan_ticker(db, symbol, *args, **kwargs):
|
||||
scanned.append(symbol)
|
||||
primary_floors.append(kwargs["primary_min_rr"])
|
||||
return []
|
||||
|
||||
monkeypatch.setattr(scoring_service, "compute_all_dimensions", _boom)
|
||||
@@ -42,6 +44,7 @@ async def test_scan_proceeds_when_score_refresh_fails(session, monkeypatch):
|
||||
setups = await rr_scanner_service.scan_all_tickers(session)
|
||||
|
||||
assert scanned == ["AAA"]
|
||||
assert primary_floors == [rr_scanner_service.PRIMARY_TARGET_MIN_RR]
|
||||
assert setups == []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user