chore: apply pre-commit auto-fixes (trim trailing whitespace, EOF)
This commit is contained in:
@@ -231,11 +231,7 @@ class TestSearchMedia:
|
||||
def test_tv_uses_name_field(self, mock_get, client):
|
||||
mock_get.side_effect = [
|
||||
_ok_response(
|
||||
{
|
||||
"results": [
|
||||
{"id": 1396, "media_type": "tv", "name": "Breaking Bad"}
|
||||
]
|
||||
}
|
||||
{"results": [{"id": 1396, "media_type": "tv", "name": "Breaking Bad"}]}
|
||||
),
|
||||
_ok_response({"imdb_id": "tt0903747"}),
|
||||
]
|
||||
@@ -281,9 +277,7 @@ class TestSearchMedia:
|
||||
def test_external_ids_failure_returns_result_without_imdb(self, mock_get, client):
|
||||
# Second call (external IDs) fails — the search should still succeed.
|
||||
mock_get.side_effect = [
|
||||
_ok_response(
|
||||
{"results": [{"id": 1, "media_type": "movie", "title": "X"}]}
|
||||
),
|
||||
_ok_response({"results": [{"id": 1, "media_type": "movie", "title": "X"}]}),
|
||||
Timeout("slow"),
|
||||
]
|
||||
result = client.search_media("X")
|
||||
|
||||
Reference in New Issue
Block a user