Skip to content
Myr

add test with kwargs for api.put

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 29f7a5b · Browse files · 1 file+17 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+17 added−0 removed

  • tests:+17 added−0 removed

1 file+17 added−0 removed

modified:tests/unit/test_requests_api.py+17 added
133 unmodified lines
134 allow_redirects=False,135 proxies="proxies", hooks="hooks")136137138 @mock.patch('requests.api.request')139 def test_http_put(self, mock_request):140 mock_request.return_value = Response()141 requests.put('http://google.com', {})142 mock_request.assert_called_once_with('put', 'http://google.com',143 data= {})144145 @mock.patch('requests.api.request')146 def test_http_put_with_kwargs(self, mock_request):147 mock_request.return_value = Response()148 requests.put('http://google.com',149 params="params", data="data", headers="headers",150 cookies="cookies",151 files="files", auth="auth", timeout="timeout",152 allow_redirects=False,153 proxies="proxies", hooks="hooks")154 mock_request.assert_called_once_with('put', 'http://google.com',155 params="params", data="data", headers="headers",156 cookies="cookies",157 files="files", auth="auth", timeout="timeout",158 allow_redirects=False,159 proxies="proxies", hooks="hooks")160161162 def test_http_patch(self, mock_request):163 mock_request.return_value = Response()164 requests.patch('http://google.com', {})165 mock_request.assert_called_once_with('patch', 'http://google.com',
10 unmodified lines