generated from coulomb/repo-seed
feat: use hub-core progress router
This commit is contained in:
@@ -155,6 +155,27 @@ class TestAddProgressEvent:
|
||||
})
|
||||
assert r.status_code == 201
|
||||
|
||||
async def test_progress_list_filters_by_topic(self, client):
|
||||
await _create_domain(client)
|
||||
topic = await _create_topic(client)
|
||||
|
||||
scoped = await client.post("/progress/", json={
|
||||
"topic_id": topic["id"],
|
||||
"summary": "Topic scoped note",
|
||||
"event_type": "note",
|
||||
})
|
||||
assert scoped.status_code == 201
|
||||
freeform = await client.post("/progress/", json={
|
||||
"summary": "Freeform note",
|
||||
"event_type": "note",
|
||||
})
|
||||
assert freeform.status_code == 201
|
||||
|
||||
r = await client.get("/progress/", params={"topic_id": topic["id"]})
|
||||
assert r.status_code == 200
|
||||
body = r.json()
|
||||
assert [event["id"] for event in body] == [scoped.json()["id"]]
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# flag_for_human — PATCH /tasks/{id} with needs_human=True
|
||||
|
||||
Reference in New Issue
Block a user