Skip to content
Myr

Add failing test for #4209

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

authored by Cory Benfield · committed by Cory Benfield · parent fdf4261 · Browse files · 1 file+10 added−1 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+10 added−1 removed

  • tests:+10 added−1 removed

1 file+10 added−1 removed

modified:tests/test_requests.py+10 added-1 removed
21 unmodified lines
22 cookiejar_from_dict, morsel_to_cookie)23from requests.exceptions import (24 ConnectionError, ConnectTimeout, InvalidSchema, InvalidURL,25 MissingSchema, ReadTimeout, Timeout, RetryError, TooManyRedirects,26 ProxyError, InvalidHeader, UnrewindableBodyError)26 ProxyError, InvalidHeader, UnrewindableBodyError, SSLError)27from requests.models import PreparedRequest28from requests.structures import CaseInsensitiveDict29from requests.sessions import SessionRedirectMixin30from requests.models import urlencode
780 unmodified lines
811 warnings_category = tuple(812 item.category.__name__ for item in warning_records)813 assert warnings_category == warnings_expected814815 def test_certificate_failure(self, httpbin_secure):816 """817 When underlying SSL problems occur, an SSLError is raised.818 """819 with pytest.raises(SSLError):820 # Our local httpbin does not have a trusted CA, so this call will821 # fail if we use our default trust bundle.822 requests.get(httpbin_secure('status', '200'))823824 def test_urlencoded_get_query_multivalued_param(self, httpbin):825826 r = requests.get(httpbin('get'), params=dict(test=['foo', 'baz']))827 assert r.status_code == 200
1559 unmodified lines