Self-hosted AI workspace.
Python
fix(tests): add endpoint URLs to remaining session fixtures
Alexandre Teixeiraec58088c56c7
diff --git a/tests/test_replace_messages_multimodal.py b/tests/test_replace_messages_multimodal.pyindex baee5972a..ac1558649 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.pyindex 35ec8e847..29b47659c 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()