Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
smk4664 committed Sep 30, 2024
1 parent d4e4531 commit 9695e41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nautobot_chatops/tests/test_dispatchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ def test_get_prompt_from_menu_choices(self):

def test_send_snippet_no_title(self):
"""Make sure files_upload is called with no title."""
with patch.object(self.dispatcher.slack_client, "files_upload") as mocked_files_upload:
with patch.object(self.dispatcher.slack_client, "files_upload_v2") as mocked_files_upload:
self.dispatcher.send_snippet("Testing files upload.")
mocked_files_upload.assert_called_with(
channels="456def", content="Testing files upload.", title=None, thread_ts=None
)

def test_send_snippet_title(self):
"""Make sure files_upload is called with title."""
with patch.object(self.dispatcher.slack_client, "files_upload") as mocked_files_upload:
with patch.object(self.dispatcher.slack_client, "files_upload_v2") as mocked_files_upload:
self.dispatcher.send_snippet("Testing files upload.", "Testing files upload title.")
mocked_files_upload.assert_called_with(
channels="456def", content="Testing files upload.", title="Testing files upload title.", thread_ts=None
Expand Down

0 comments on commit 9695e41

Please sign in to comment.