Isolate sparse request recheck regression test
This commit is contained in:
@@ -678,6 +678,15 @@ class RequestRecheckTests(unittest.IsolatedAsyncioTestCase):
|
||||
|
||||
with patch.object(requests_router, "get_runtime_settings", return_value=runtime), patch.object(
|
||||
requests_router, "JellyseerrClient", return_value=seerr
|
||||
), patch.object(
|
||||
requests_router,
|
||||
"_get_media_details",
|
||||
new=AsyncMock(
|
||||
return_value={
|
||||
"title": "Batman v Superman: Dawn of Justice",
|
||||
"releaseDate": "2016-03-23",
|
||||
}
|
||||
),
|
||||
), patch.object(requests_router, "upsert_request_cache") as upsert, patch.object(
|
||||
requests_router, "_cache_set"
|
||||
) as cache_set, patch.object(requests_router, "_refresh_recent_cache_from_db"), patch.object(
|
||||
|
||||
Reference in New Issue
Block a user