@@ -322,7 +322,7 @@ async def test_client_listen_routing_ok(monkeypatch: pytest.MonkeyPatch) -> None
322
322
build_dataclass (ReceiptFrame ),
323
323
(first_message_frame := build_dataclass (MessageFrame , headers = {"subscription" : first_sub_id })),
324
324
(error_frame := build_dataclass (ErrorFrame )),
325
- (second_message_frame := build_dataclass (MessageFrame )),
325
+ (_second_message_frame := build_dataclass (MessageFrame )),
326
326
(third_message_frame := build_dataclass (MessageFrame , headers = {"subscription" : second_sub_id })),
327
327
HeartbeatFrame (),
328
328
]
@@ -335,7 +335,6 @@ async def test_client_listen_routing_ok(monkeypatch: pytest.MonkeyPatch) -> None
335
335
connection_class = connection_class ,
336
336
on_error_frame = (on_error_frame := mock .Mock ()),
337
337
on_heartbeat = (on_heartbeat := mock .Mock ()),
338
- on_unhandled_message_frame = (on_unhandled_message_frame := mock .Mock ()),
339
338
) as client :
340
339
first_subscription = await client .subscribe (
341
340
FAKER .pystr (), handler = first_message_handler , on_suppressed_exception = first_error_handler
@@ -356,7 +355,6 @@ async def test_client_listen_routing_ok(monkeypatch: pytest.MonkeyPatch) -> None
356
355
357
356
on_error_frame .assert_called_once_with (error_frame )
358
357
on_heartbeat .assert_called_once_with ()
359
- on_unhandled_message_frame .assert_called_once_with (second_message_frame )
360
358
361
359
362
360
@pytest .mark .parametrize ("side_effect" , [None , SomeError ])
0 commit comments