mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge commit '8c4d4f1af3a501ae0beec5e270f3206cda5c4842' into v3.0.0
This commit is contained in:
@@ -1738,6 +1738,16 @@ def test_prepare_unicode_url():
|
||||
assert_copy(p, p.copy())
|
||||
|
||||
|
||||
def test_prepare_requires_a_request_method():
|
||||
req = Request()
|
||||
with pytest.raises(ValueError):
|
||||
req.prepare()
|
||||
|
||||
prepped = PreparedRequest()
|
||||
with pytest.raises(ValueError):
|
||||
prepped.prepare()
|
||||
|
||||
|
||||
def test_urllib3_retries(httpbin):
|
||||
from requests.packages.urllib3.util import Retry
|
||||
s = requests.Session()
|
||||
|
||||
Reference in New Issue
Block a user