Skip to content

Commit 9c3af09

Browse files
committed
fix type error in oldeps
1 parent 26c3a6d commit 9c3af09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/media/test_media_storage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ async def _send_request(*args: Any, **kwargs: Any) -> IResponse:
944944
resp = MagicMock(spec=IResponse)
945945
resp.code = 200
946946
resp.length = 31457280
947-
resp.headers = Headers({"Content-Type": "application/octet-stream"})
947+
resp.headers = Headers({"Content-Type": ["application/octet-stream"]})
948948
resp.phrase = b"OK"
949949
return resp
950950

@@ -1019,7 +1019,7 @@ async def _send_request(*args: Any, **kwargs: Any) -> IResponse:
10191019
resp = MagicMock(spec=IResponse)
10201020
resp.code = 200
10211021
resp.length = 52428800
1022-
resp.headers = Headers({"Content-Type": "application/octet-stream"})
1022+
resp.headers = Headers({"Content-Type": ["application/octet-stream"]})
10231023
resp.phrase = b"OK"
10241024
return resp
10251025

@@ -1077,7 +1077,7 @@ async def _send_request(*args: Any, **kwargs: Any) -> IResponse:
10771077
resp = MagicMock(spec=IResponse)
10781078
resp.code = 200
10791079
resp.length = UNKNOWN_LENGTH
1080-
resp.headers = Headers({"Content-Type": "application/octet-stream"})
1080+
resp.headers = Headers({"Content-Type": ["application/octet-stream"]})
10811081
resp.phrase = b"OK"
10821082
return resp
10831083

0 commit comments

Comments
 (0)