Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lint issues on test_client_ws #1644

Merged
merged 1 commit into from
Feb 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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