feat: expose bracket results and discovery feed
Verify and deploy API / verify-deploy (push) Successful in 1m47s
Verify and deploy API / verify-deploy (push) Successful in 1m47s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user