From 9c3af09e8bc22805b704b8261fa107972d1888d5 Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Mon, 3 Jun 2024 11:50:55 -0700 Subject: [PATCH] fix type error in oldeps --- tests/media/test_media_storage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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