You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I only started using vcrpy today, so naturally I assumed I was doing something wrong when I consistently got the following Exception on cassette playback:
File "C:\Users\chris.mcevoy\Documents\GitHub\{private repo}\env\lib\site-packages\vcr\stubs\aiohttp_stubs\__init__.py", line 57, in new_request response = MockClientResponse(method, URL(url)) TypeError: __init__() missing 8 required keyword-only arguments: 'writer', 'continue100', 'timer', 'request_info', 'auto_decompress', 'traces', 'loop', and 'session'
For the most part, I think this could be relatively easily worked around by giving vcrpy's MockClientResponse an __init__() which calls super().__init__() with the old defaults...?
However, there are two new args in aiohttp ClientResponse's signature to consider, specifically loop and session.
The text was updated successfully, but these errors were encountered:
Hi! Firstly, a quick thank you for this library.
I've hit an issue with the aiohttp stubs, following this aiohttp commit which changes the signature of their ClientResponse class.
This breaks lines 56 and 66 in
aiohttp_stubs\.__init__.py
:response = MockClientResponse(method, URL(vcr_response.get('url')))
I only started using vcrpy today, so naturally I assumed I was doing something wrong when I consistently got the following Exception on cassette playback:
File "C:\Users\chris.mcevoy\Documents\GitHub\{private repo}\env\lib\site-packages\vcr\stubs\aiohttp_stubs\__init__.py", line 57, in new_request response = MockClientResponse(method, URL(url)) TypeError: __init__() missing 8 required keyword-only arguments: 'writer', 'continue100', 'timer', 'request_info', 'auto_decompress', 'traces', 'loop', and 'session'
For the most part, I think this could be relatively easily worked around by giving vcrpy's MockClientResponse an
__init__()
which callssuper().__init__()
with the old defaults...?However, there are two new args in aiohttp ClientResponse's signature to consider, specifically
loop
andsession
.The text was updated successfully, but these errors were encountered: