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

Method test_no_content_length

tests/test_requests.py:125–127  ·  view source on GitHub ↗
(self, httpbin, method)

Source from the content-addressed store, hash-verified

123
124 @pytest.mark.parametrize("method", ("GET", "HEAD"))
125 def test_no_content_length(self, httpbin, method):
126 req = requests.Request(method, httpbin(method.lower())).prepare()
127 assert "Content-Length" not in req.headers
128
129 @pytest.mark.parametrize("method", ("POST", "PUT", "PATCH", "OPTIONS"))
130 def test_no_body_content_length(self, httpbin, method):

Callers

nothing calls this directly

Calls 2

httpbinFunction · 0.85
prepareMethod · 0.45

Tested by

no test coverage detected