Skip to content

Commit

Permalink
fix: fix mock test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Feb 26, 2024
1 parent cd9c951 commit ec1853d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def test_send_to_slack(self, slack_url, service_name, expected_message):
if expected_message is None:
mock_req.assert_not_called()
else:
assert mock_req.called_once()
mock_req.assert_called_once()
(call_args, call_kwargs) = mock_req.call_args_list[0]
assert json.loads(call_kwargs['data'])['text'] == expected_message

0 comments on commit ec1853d

Please sign in to comment.