From 6e66e6945112883fd2d7da1cef52ce1c50eb1b53 Mon Sep 17 00:00:00 2001 From: Wes Huber Date: Wed, 3 Jun 2026 18:32:54 -0700 Subject: [PATCH] fix(tests): add endpoint URL to archived session seeds The sessions table now enforces NOT NULL on endpoint_url, but the test fixture omitted it when seeding archived sessions, causing IntegrityError on all three test cases. Co-authored-by: Claude Opus 4.6 (1M context) --- tests/test_archived_sessions_model_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_archived_sessions_model_filter.py b/tests/test_archived_sessions_model_filter.py index 32c8420..921b62d 100644 --- a/tests/test_archived_sessions_model_filter.py +++ b/tests/test_archived_sessions_model_filter.py @@ -51,7 +51,7 @@ def _seed(owner, *models): db.query(DbSession).delete() for m in models: db.add(DbSession(id=str(uuid.uuid4()), owner=owner, name=f"chat {m}", - model=m, archived=True)) + endpoint_url="http://localhost", model=m, archived=True)) db.commit() finally: db.close()