Fix test response recorder dropping self reference

This commit is contained in:
Joakim Soderlund 2018-08-22 15:20:41 +02:00
parent 65f4919a36
commit 10d906bf7c

View file

@ -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