Skip to content
Myr

add test with kwargs for api.get

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Schauenberg · committed by Daniel Schauenberg · parent 14081be · Browse files · 1 file+16 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+16 added−0 removed

  • tests:+16 added−0 removed

1 file+16 added−0 removed

modified:tests/unit/test_requests_api.py+16 added
71 unmodified lines
72 mock_request.assert_called_once_with('get', 'http://google.com',73 allow_redirects= True)7475 @mock.patch('requests.api.request')76 def test_http_get_with_kwargs(self, mock_request):77 mock_request.return_value = Response()78 requests.get('http://google.com',79 params="params", data="data", headers="headers",80 cookies="cookies",81 files="files", auth="auth", timeout="timeout",82 allow_redirects=False,83 proxies="proxies", hooks="hooks")84 mock_request.assert_called_once_with('get', 'http://google.com',85 params="params", data="data", headers="headers",86 cookies="cookies",87 files="files", auth="auth", timeout="timeout",88 allow_redirects=False,89 proxies="proxies", hooks="hooks")9091 @mock.patch('requests.api.request')92 def test_http_head(self, mock_request):93 mock_request.return_value = Response()94 requests.head('http://google.com')95 mock_request.assert_called_once_with('head', 'http://google.com',
31 unmodified lines