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) <noreply@anthropic.com>
This commit is contained in:
parent
5f58f9a45f
commit
6e66e69451
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ def _seed(owner, *models):
|
||||||
db.query(DbSession).delete()
|
db.query(DbSession).delete()
|
||||||
for m in models:
|
for m in models:
|
||||||
db.add(DbSession(id=str(uuid.uuid4()), owner=owner, name=f"chat {m}",
|
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()
|
db.commit()
|
||||||
finally:
|
finally:
|
||||||
db.close()
|
db.close()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue