Skip to content

Commit

Permalink
fixup! WIP Add SSL related params to ClientSession.request
Browse files Browse the repository at this point in the history
  • Loading branch information
cecton committed Sep 2, 2017
1 parent 3f0b995 commit 3ba69a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ def test_connect(self, ClientRequestMock):
req = ClientRequest(
'GET', URL('http://www.python.org'),
proxy=URL('http://proxy.example.com'),
loop=self.loop
loop=self.loop,
ssl_context=None,
)
self.assertEqual(str(req.proxy), 'http://proxy.example.com')

# mock all the things!
connector = aiohttp.TCPConnector(loop=self.loop)
connector = aiohttp.TCPConnector(loop=self.loop, ssl_context=None)
connector._resolve_host = make_mocked_coro([mock.MagicMock()])

proto = mock.Mock()
Expand Down

0 comments on commit 3ba69a5

Please sign in to comment.