Skip to content

Commit a978610

Browse files
committed
fix tests
1 parent 26d24cd commit a978610

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

services/web/server/tests/unit/isolated/notifications/test_rabbitmq_consumers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@
8080
async 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"]

0 commit comments

Comments
 (0)