feat(stock-lab): /run mode=auto 공휴일·주말 skipped_holiday 처리
This commit is contained in:
@@ -144,3 +144,11 @@ def test_runs_list_and_detail(client):
|
||||
assert detail.status_code == 200
|
||||
assert detail.json()["meta"]["id"] == run_id
|
||||
assert isinstance(detail.json()["results"], list)
|
||||
|
||||
|
||||
def test_run_holiday_returns_skipped(client):
|
||||
# 2026-05-09는 토요일 (주말). _is_holiday 가 weekday>=5를 잡음.
|
||||
r = client.post("/api/stock/screener/run",
|
||||
json={"mode": "auto", "asof": "2026-05-09"})
|
||||
assert r.status_code == 200
|
||||
assert r.json()["status"] == "skipped_holiday"
|
||||
|
||||
Reference in New Issue
Block a user