test(screener): update node count test to 8 (ai_news added)
This commit is contained in:
@@ -21,15 +21,16 @@ def client():
|
|||||||
return TestClient(app)
|
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")
|
r = client.get("/api/stock/screener/nodes")
|
||||||
assert r.status_code == 200
|
assert r.status_code == 200
|
||||||
body = r.json()
|
body = r.json()
|
||||||
assert len(body["score_nodes"]) == 7
|
assert len(body["score_nodes"]) == 8
|
||||||
assert len(body["gate_nodes"]) == 1
|
assert len(body["gate_nodes"]) == 1
|
||||||
assert {n["name"] for n in body["score_nodes"]} == {
|
assert {n["name"] for n in body["score_nodes"]} == {
|
||||||
"foreign_buy", "volume_surge", "momentum",
|
"foreign_buy", "volume_surge", "momentum",
|
||||||
"high52w", "rs_rating", "ma_alignment", "vcp_lite",
|
"high52w", "rs_rating", "ma_alignment", "vcp_lite",
|
||||||
|
"ai_news",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user