feat: expose bracket results and discovery feed
Verify and deploy API / verify-deploy (push) Successful in 1m47s

This commit is contained in:
2026-09-19 04:10:38 +08:00
parent b152c04531
commit ed117301f2
3 changed files with 57 additions and 5 deletions
+4
View File
@@ -57,6 +57,10 @@ def test_login_complete_and_read_result():
},
)
assert created.status_code == 201, created.text
assert created.json()["decisions"][0]["winner_id"] == left["id"]
assert created.json()["candidate_names"][left["id"]] == "蛋炒饭"
public = client.get("/api/v1/results/discover").json()
assert public[0]["champion_name"] == "蛋炒饭"
history = client.get("/api/v1/me/results?test_slug=rice", headers=headers).json()
assert history[0]["champion_name"] == "蛋炒饭"
assert client.post("/api/v1/auth/logout", headers=headers).status_code == 204