Skip to content

Commit f283987

Browse files
fix: add specTitles to cached response mock in test
The test_filter_cached test was failing because the MagicMock didn't have specTitles defined, causing a validation error when FastAPI tried to serialize the response. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c6773ae commit f283987

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/api/test_routers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ def test_filter_cached(self, client: TestClient) -> None:
840840
cached_response.counts = {}
841841
cached_response.globalCounts = {}
842842
cached_response.orCounts = []
843+
cached_response.specTitles = {}
843844

844845
with (
845846
patch(DB_CONFIG_PATCH, return_value=True),

0 commit comments

Comments
 (0)