test(screener): update node count test to 8 (ai_news added)

This commit is contained in:
2026-05-13 23:52:54 +09:00
parent f37b21a408
commit 2a552d3cc8

View File

@@ -21,15 +21,16 @@ def client():
return TestClient(app)
def test_get_nodes_lists_7_score_and_1_gate(client):
def test_get_nodes_lists_8_score_and_1_gate(client):
r = client.get("/api/stock/screener/nodes")
assert r.status_code == 200
body = r.json()
assert len(body["score_nodes"]) == 7
assert len(body["score_nodes"]) == 8
assert len(body["gate_nodes"]) == 1
assert {n["name"] for n in body["score_nodes"]} == {
"foreign_buy", "volume_surge", "momentum",
"high52w", "rs_rating", "ma_alignment", "vcp_lite",
"ai_news",
}