Skip to content
Myr

Merge pull request #3684 from nateprewitt/fixing_url_tests_without_method

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add method to url tests

authored by Cory Benfield · committed by GitHub · parents 362da46, 5bb01fb · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:tests/test_requests.py+2 added-2 removed
2114 unmodified lines
2115 ),2116 )2117 )2118 def test_preparing_url(self, url, expected):2119 r = requests.Request(url=url)2119 r = requests.Request('GET', url=url)2120 p = r.prepare()2121 assert p.url == expected21222123 @pytest.mark.parametrize(
5 unmodified lines
2129 u"http://*",2130 )2131 )2132 def test_preparing_bad_url(self, url):2133 r = requests.Request(url=url)2133 r = requests.Request('GET', url=url)2134 with pytest.raises(requests.exceptions.InvalidURL):2135 r.prepare()