From 6149ca9c394df7d316f80db05ad0fc2aea6c550d Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sat, 11 Apr 2026 13:58:01 -0500 Subject: feat: add lazy actor indexing for contribution lookups --- tests/test_migrations.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/test_migrations.py') diff --git a/tests/test_migrations.py b/tests/test_migrations.py index d572af2..505ddb3 100644 --- a/tests/test_migrations.py +++ b/tests/test_migrations.py @@ -22,6 +22,7 @@ def test_alembic_upgrade_creates_schema(tmp_path) -> None: "alembic_version", "contribution_events", "sync_states", + "tracked_actors", "tracked_repositories", ] @@ -115,6 +116,7 @@ def test_alembic_upgrade_adopts_legacy_schema(tmp_path) -> None: assert columns["actor"]["nullable"] is False assert "uq_tracked_repository_service_actor_name" in unique_constraints assert actor == Settings().default_actor + assert "tracked_actors" in inspector.get_table_names() def test_alembic_prefers_database_url_from_environment(tmp_path, monkeypatch) -> None: @@ -128,3 +130,4 @@ def test_alembic_prefers_database_url_from_environment(tmp_path, monkeypatch) -> inspector = inspect(create_engine(database_url)) assert "actor_aliases" in inspector.get_table_names() + assert "tracked_actors" in inspector.get_table_names() -- cgit v1.2.3