From be8f1fac85985a5a31001a934420b3dcc35e7cb5 Mon Sep 17 00:00:00 2001 From: Alexandre Teixeira <111787685+alteixeira20@users.noreply.github.com> Date: Thu, 4 Jun 2026 03:14:43 +0100 Subject: [PATCH] fix(tests): add endpoint URLs to remaining session fixtures --- tests/test_replace_messages_multimodal.py | 1 + tests/test_rewrite_persist_column.py | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/test_replace_messages_multimodal.py b/tests/test_replace_messages_multimodal.py index baee597..ac15586 100644 --- a/tests/test_replace_messages_multimodal.py +++ b/tests/test_replace_messages_multimodal.py @@ -45,6 +45,7 @@ def _make_session(sid, owner="alice"): db = _TS() try: db.add(DbSession(id=sid, owner=owner, name="chat", model="gpt-4o", + endpoint_url="http://localhost:11434", archived=False, message_count=1)) db.commit() finally: diff --git a/tests/test_rewrite_persist_column.py b/tests/test_rewrite_persist_column.py index 35ec8e8..29b4765 100644 --- a/tests/test_rewrite_persist_column.py +++ b/tests/test_rewrite_persist_column.py @@ -36,7 +36,14 @@ def test_rewrite_query_selects_and_updates_latest_assistant_message(): base = datetime(2026, 6, 3, 12, 0, 0) db = TS() try: - db.add(DbSession(id=sid, owner="alice", name="c", model="m", archived=False)) + db.add(DbSession( + id=sid, + owner="alice", + name="c", + model="m", + endpoint_url="http://localhost:11434", + archived=False, + )) db.add(DBChatMessage(id="m1", session_id=sid, role="assistant", content="old first", timestamp=base)) db.add(DBChatMessage(id="m2", session_id=sid, role="assistant", content="old latest", timestamp=base + timedelta(minutes=1))) db.commit()