feat: use hub-core progress router

This commit is contained in:
2026-06-07 14:29:12 +02:00
parent 40e2e96aef
commit f41c61d0b5
2 changed files with 29 additions and 46 deletions

View File

@@ -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