Skip to content

Commit e99d259

Browse files
author
Joel Collins
committed
Fixed ws test accounting for INFO logging level
1 parent d315730 commit e99d259

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_server_default_views_socket_handler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ def test_socket_handler(thing_ctx, fake_websocket):
55
with thing_ctx.test_request_context():
66
ws = fake_websocket("", recieve_once=True)
77
socket_handler(ws)
8-
# Expect no response
9-
assert ws.responses == []
8+
# Only responses should be announcing new subscribers
9+
for response in ws.responses:
10+
assert '"data": "Added subscriber' in response

0 commit comments

Comments
 (0)