Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed May 9, 2018
1 parent fe33e3f commit f1af030
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lomond/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import unicode_literals

__version__ = "0.2.2a0"
__version__ = "0.2.2"
2 changes: 1 addition & 1 deletion tests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_calling_build_close_payload_requires_status():
@pytest.mark.parametrize('init_params, expected_error', [
(
{'opcode': Opcode.PING, 'payload': b'A' * 126},
"control frames must <= 125 bytes in length"
"control frames must be <= 125 bytes in length"
),
(
{'opcode': Opcode.TEXT, 'payload': b'A', 'rsv1': 1},
Expand Down
2 changes: 1 addition & 1 deletion tests/test_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ def test_no_url_ws():
events = list(ws.connect())
assert len(events) == 2
assert events[0].name == 'connecting'
assert events[1].name == 'connect_fail'
assert events[1].name == 'connect_fail'
2 changes: 2 additions & 0 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def test_simple_run(monkeypatch, mocker):
assert isinstance(_events[3], events.Poll)
assert isinstance(_events[4], events.Text)
assert isinstance(_events[5], events.Disconnected)
assert not _events[5].graceful


@freeze_time("1994-05-01 18:40:00")
Expand Down Expand Up @@ -396,6 +397,7 @@ def test_unresponsive(monkeypatch, mocker):
assert isinstance(_events[5], events.Poll)
assert isinstance(_events[6], events.Unresponsive)
assert isinstance(_events[7], events.Disconnected)
assert not _events[7].graceful


def test_recv_no_sock(session):
Expand Down

0 comments on commit f1af030

Please sign in to comment.