fixing mock session
This commit is contained in:
@@ -657,6 +657,16 @@ def mocked_requests(*args, **kwargs):
|
||||
|
||||
|
||||
class MockSession:
|
||||
class headers:
|
||||
def __init__(self,*args,**kwargs):
|
||||
pass
|
||||
|
||||
def update(self,*args,**kwargs):
|
||||
pass
|
||||
|
||||
def post(self, *args, **kwargs):
|
||||
return MockResponse('',200)
|
||||
|
||||
def send(self,prepped):
|
||||
# prepped.url
|
||||
# prepped.body (post data)
|
||||
|
||||
Reference in New Issue
Block a user