MCPcopy
hub / github.com/psf/requests / test_conflicting_post_params

Method test_conflicting_post_params

tests/test_requests.py:924–928  ·  view source on GitHub ↗
(self, httpbin)

Source from the content-addressed store, hash-verified

922 assert found_json == {"some": "data"}
923
924 def test_conflicting_post_params(self, httpbin):
925 url = httpbin("post")
926 with open("requirements-dev.txt") as f:
927 with pytest.raises(ValueError):
928 requests.post(url, data='[{"some": "data"}]', files={"some": f})
929
930 def test_request_ok_set(self, httpbin):
931 r = requests.get(httpbin("status", "404"))

Callers

nothing calls this directly

Calls 2

httpbinFunction · 0.85
postMethod · 0.80

Tested by

no test coverage detected