Пример #1
0
 def mockreturn(endpoint, params=()):
     return pytest.ResponseMockup({}, requests.codes.forbidden)
Пример #2
0
 def mockreturn(endpoint, params={}):
     return pytest.ResponseMockup({}, requests.codes.teapot)
Пример #3
0
 def mockreturn(endpoint, params=()):
     return pytest.ResponseMockup({}, requests.codes.not_found)