Skip to content

Commit

Permalink
Fixed ws test accounting for INFO logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 23, 2020
1 parent d315730 commit e99d259
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_server_default_views_socket_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ def test_socket_handler(thing_ctx, fake_websocket):
with thing_ctx.test_request_context():
ws = fake_websocket("", recieve_once=True)
socket_handler(ws)
# Expect no response
assert ws.responses == []
# Only responses should be announcing new subscribers
for response in ws.responses:
assert '"data": "Added subscriber' in response

0 comments on commit e99d259

Please sign in to comment.