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

Method test_cannot_send_unprepared_requests

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

Source from the content-addressed store, hash-verified

1576 assert resp.status_code == 200
1577
1578 def test_cannot_send_unprepared_requests(self, httpbin):
1579 r = requests.Request(url=httpbin())
1580 with pytest.raises(ValueError):
1581 requests.Session().send(r)
1582
1583 def test_http_error(self):
1584 error = requests.exceptions.HTTPError()

Callers

nothing calls this directly

Calls 2

httpbinFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected