fix: remove double-call on AsyncSession in SerieScanner

get_async_session_factory() returns session directly, not factory.
Calling result again with () caused 'AsyncSession' object is not callable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-05-27 20:19:34 +02:00
parent fc4e52f1a2
commit b9c55f9e7a
3 changed files with 18 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ class TestPersistSerieToDbErrorHandling:
with patch(
"src.server.database.connection.get_async_session_factory",
return_value=mock_factory
return_value=mock_session
):
with patch(
"src.server.database.service.AnimeSeriesService.get_by_key",