File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ class FakeSSLContext(SuperFakeSSLContext):
8585 "load_verify_locations" ,
8686 "set_alpn_protocols" ,
8787 "set_ciphers" ,
88+ "set_default_verify_paths" ,
8889 )
8990 sock = None
9091 post_handshake_auth = None
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ async def test_https_session(self):
8181
8282 self .assertEqual (len (Mocket .request_list ()), 2 )
8383
84+ @async_mocketize
85+ async def test_no_verify (self ):
86+ Entry .single_register (Entry .GET , self .target_url , status = 404 )
87+
88+ async with aiohttp .ClientSession (timeout = self .timeout ) as session :
89+ async with session .get (self .target_url , ssl = False ) as get_response :
90+ assert get_response .status == 404
91+
8492 @async_httprettified
8593 async def test_httprettish_session (self ):
8694 HTTPretty .register_uri (
You can’t perform that action at this time.
0 commit comments