From e1a3233ec2204055faa8dadb18cb2efa12cf0e17 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sat, 11 Apr 2026 17:39:21 -0500 Subject: feat: add resumable historical backfill for actor activity --- tests/test_contributions_api.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test_contributions_api.py') diff --git a/tests/test_contributions_api.py b/tests/test_contributions_api.py index 22d0af3..f2b8564 100644 --- a/tests/test_contributions_api.py +++ b/tests/test_contributions_api.py @@ -63,6 +63,9 @@ def test_public_read_registers_actor_for_lazy_indexing(client: TestClient, db_se assert response.status_code == 200 assert response.json()["is_indexed"] is False assert response.json()["indexing_state"] == "pending" + assert response.json()["is_backfilled"] is False + assert response.json()["backfill_state"] == "pending" + assert response.json()["backfill_completed_at"] is None assert response.json()["last_polled_at"] is None assert tracked_actor is not None assert tracked_actor.is_active is True @@ -107,6 +110,7 @@ def test_contribution_stats_api(client: TestClient, db_session) -> None: assert response.json()["current_streak"] == 2 assert response.json()["is_indexed"] is True assert response.json()["indexing_state"] == "indexed" + assert response.json()["is_backfilled"] is False def test_invalid_date_input_returns_400(client: TestClient) -> None: -- cgit v1.2.3