Skip to content
Myr

add test with kwargs for api.head

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 cb2e872 · Browse files · 1 file+15 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+15 added−0 removed

  • tests:+15 added−0 removed

1 file+15 added−0 removed

modified:tests/unit/test_requests_api.py+15 added
94 unmodified lines
95 mock_request.assert_called_once_with('head', 'http://google.com',96 allow_redirects= True)9798 @mock.patch('requests.api.request')99 def test_http_head_with_kwargs(self, mock_request):100 mock_request.return_value = Response()101 requests.head('http://google.com',102 params="params", data="data", headers="headers",103 cookies="cookies",104 files="files", auth="auth", timeout="timeout",105 allow_redirects=False,106 proxies="proxies", hooks="hooks")107 mock_request.assert_called_once_with('head', 'http://google.com',108 params="params", data="data", headers="headers",109 cookies="cookies",110 files="files", auth="auth", timeout="timeout",111 allow_redirects=False,112 proxies="proxies", hooks="hooks")113114 def test_http_post(self, mock_request):115 mock_request.return_value = Response()116 requests.post('http://google.com', {})117 mock_request.assert_called_once_with('post', 'http://google.com',
24 unmodified lines