mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-22 05:17:59 +01:00
Fix test response recorder dropping self reference
This commit is contained in:
parent
65f4919a36
commit
10d906bf7c
1 changed files with 4 additions and 1 deletions
5
tests/fixtures/responses.py
vendored
5
tests/fixtures/responses.py
vendored
|
@ -114,7 +114,10 @@ class Recorder(ContextManager['Recorder']):
|
|||
"""
|
||||
Overrides the session send method.
|
||||
"""
|
||||
Session.send = self # type: ignore
|
||||
def send(session, request, **kwargs):
|
||||
return self(session, request, **kwargs)
|
||||
|
||||
Session.send = send # type: ignore
|
||||
|
||||
return self
|
||||
|
||||
|
|
Loading…
Reference in a new issue