diff --git a/tests/media/test_media_storage.py b/tests/media/test_media_storage.py index 469f0f64072..46d20ce7755 100644 --- a/tests/media/test_media_storage.py +++ b/tests/media/test_media_storage.py @@ -944,7 +944,7 @@ async def _send_request(*args: Any, **kwargs: Any) -> IResponse: resp = MagicMock(spec=IResponse) resp.code = 200 resp.length = 31457280 - resp.headers = Headers({"Content-Type": "application/octet-stream"}) + resp.headers = Headers({"Content-Type": ["application/octet-stream"]}) resp.phrase = b"OK" return resp @@ -1019,7 +1019,7 @@ async def _send_request(*args: Any, **kwargs: Any) -> IResponse: resp = MagicMock(spec=IResponse) resp.code = 200 resp.length = 52428800 - resp.headers = Headers({"Content-Type": "application/octet-stream"}) + resp.headers = Headers({"Content-Type": ["application/octet-stream"]}) resp.phrase = b"OK" return resp @@ -1077,7 +1077,7 @@ async def _send_request(*args: Any, **kwargs: Any) -> IResponse: resp = MagicMock(spec=IResponse) resp.code = 200 resp.length = UNKNOWN_LENGTH - resp.headers = Headers({"Content-Type": "application/octet-stream"}) + resp.headers = Headers({"Content-Type": ["application/octet-stream"]}) resp.phrase = b"OK" return resp