Commit 210ab23a by sunqi02

test: adapt test mocks to db_factory parameter

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent eaad24dc
......@@ -97,7 +97,7 @@ class TestDatabasePersistence:
@pytest.fixture
def svc(self, db):
return ActiveSessionService(db=db)
return ActiveSessionService(db_factory=lambda: db)
def test_save_to_db_creates_record(self, svc, db):
"""新 session save_to_db 后 DB 有记录"""
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!