test: use PostgreSQL and live model integrations

This commit is contained in:
2026-09-25 20:30:28 +08:00
parent dd48e13cf2
commit 8bebcdb470
9 changed files with 144 additions and 77 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ def test_missing_material_is_explicit_and_reviewable(session_factory):
client = client_for(session_factory)
try:
batch_id = client.post("/api/scoring-batches", json={"course_version_id": 1, "rubric_version_id": 1}).json()["id"]
run_batch(batch_id, session_factory=session_factory, client_factory=lambda db, batch: object())
run_batch(batch_id, session_factory=session_factory)
status = client.get(f"/api/scoring-batches/{batch_id}/progress").json()
assert status["status"] == "partial" and status["progress_done"] == status["progress_total"] == 22
result = client.get(f"/api/scoring-batches/{batch_id}/scores").json()[0]