File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
services/web/server/tests/unit/isolated/notifications Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 8080async def test_regression_progress_message_parser (
8181 mocker : MockerFixture , raw_data : bytes , expected_socket_message : SocketMessageDict
8282):
83- send_messages_to_user_mock = mocker .patch (
84- "simcore_service_webserver.notifications._rabbitmq_exclusive_queue_consumers.send_message_to_user " ,
83+ send_message_to_standard_group_mock = mocker .patch (
84+ "simcore_service_webserver.notifications._rabbitmq_exclusive_queue_consumers.send_message_to_standard_group " ,
8585 autospec = True ,
8686 )
8787
8888 app = AsyncMock ()
8989 assert await _progress_message_parser (app , raw_data )
9090
91- # tests how send_message_to_user is called
92- assert send_messages_to_user_mock .call_count == 1
93- message = send_messages_to_user_mock .call_args .kwargs ["message" ]
91+ # tests how send_message_to_standard_group is called
92+ assert send_message_to_standard_group_mock .call_count == 1
93+ message = send_message_to_standard_group_mock .call_args .kwargs ["message" ]
9494
9595 # check that all fields are sent as expected
9696 assert message ["data" ] == expected_socket_message ["data" ]
You can’t perform that action at this time.
0 commit comments