diff --git a/tests/test_server_default_views_socket_handler.py b/tests/test_server_default_views_socket_handler.py index 3b626b94..0e390783 100644 --- a/tests/test_server_default_views_socket_handler.py +++ b/tests/test_server_default_views_socket_handler.py @@ -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