Skip to content

Commit

Permalink
Merge pull request #1644 from armills/ws_connect_fix_lint
Browse files Browse the repository at this point in the history
Fix lint issues on test_client_ws
  • Loading branch information
Nikolay Kim authored Feb 16, 2017
2 parents 96a760d + 97f1395 commit a4c673f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/test_client_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ def mock_get(*args, **kwargs):
with mock.patch('aiohttp.client.ClientSession.get',
side_effect=mock_get) as m_req:
m_os.urandom.return_value = key_data
#m_req.return_value = helpers.create_future(loop)
#m_req.return_value.set_result(resp)

res = yield from aiohttp.ClientSession(loop=loop).ws_connect(
'http://test.org',
Expand All @@ -260,8 +258,6 @@ def mock_get(*args, **kwargs):
yield from test_connection()
# Generate a new ws key
key_data = os.urandom(16)
ws_key = base64.b64encode(
hashlib.sha1(base64.b64encode(key_data) + WS_KEY).digest()).decode()
yield from test_connection()


Expand Down

0 comments on commit a4c673f

Please sign in to comment.