fixed : tests

This commit is contained in:
2025-11-15 17:55:27 +01:00
parent fac0cecf90
commit 7b07e0cfae
15 changed files with 3460 additions and 1046 deletions

View File

@@ -400,8 +400,8 @@ async def _perform_search(
matches: List[Any] = []
if hasattr(series_app, "search"):
# SeriesApp.search is synchronous in core; call directly
matches = series_app.search(validated_query)
# SeriesApp.search is async; await the result
matches = await series_app.search(validated_query)
summaries: List[AnimeSummary] = []
for match in matches:

View File

@@ -79,7 +79,8 @@ class ProgressUpdate:
"percent": round(self.percent, 2),
"current": self.current,
"total": self.total,
"metadata": self.metadata,
# Make a copy to prevent mutation issues
"metadata": self.metadata.copy(),
"started_at": self.started_at.isoformat(),
"updated_at": self.updated_at.isoformat(),
}