Skip to content

Commit c6fb3c9

Browse files
model/test_model/conftest :Notify when a message with alert word is
received
1 parent 383201b commit c6fb3c9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/model/test_model.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,11 +2134,6 @@ def test_notify_user_with_alert_words(
21342134
mocker.patch.object(model, "is_muted_stream", return_value=is_stream_muted)
21352135
mocker.patch.object(model, "is_muted_topic", return_value=is_topic_muted)
21362136
notify = mocker.patch(MODULE + ".notify")
2137-
# recipient_string = model.notify_user(stream_msg_fixture)
2138-
# assert recipient_string == expected_recipient_string
2139-
# notify.assert_called_once_with(mocker.ANY, expected_recipient_string)
2140-
# # add this line to see if the notify function is being called
2141-
notify = mocker.patch(MODULE + ".notify")
21422137
model.notify_user(stream_msg_fixture)
21432138
if no_of_times_notify_call_expected == 1:
21442139
assert notify.called

0 commit comments

Comments
 (0)