diff --git a/nautobot_chatops/tests/test_dispatchers.py b/nautobot_chatops/tests/test_dispatchers.py index d4c032ea..3d5dce52 100644 --- a/nautobot_chatops/tests/test_dispatchers.py +++ b/nautobot_chatops/tests/test_dispatchers.py @@ -123,7 +123,7 @@ 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 @@ -131,7 +131,7 @@ def test_send_snippet_no_title(self): 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