mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
adding method to url tests
This commit is contained in:
@@ -2265,7 +2265,7 @@ class TestPreparingURLs(object):
|
||||
)
|
||||
)
|
||||
def test_preparing_url(self, url, expected):
|
||||
r = requests.Request(url=url)
|
||||
r = requests.Request('GET', url=url)
|
||||
p = r.prepare()
|
||||
assert p.url == expected
|
||||
|
||||
@@ -2279,6 +2279,6 @@ class TestPreparingURLs(object):
|
||||
)
|
||||
)
|
||||
def test_preparing_bad_url(self, url):
|
||||
r = requests.Request(url=url)
|
||||
r = requests.Request('GET', url=url)
|
||||
with pytest.raises(requests.exceptions.InvalidURL):
|
||||
r.prepare()
|
||||
|
||||
Reference in New Issue
Block a user