Skip to content

Commit 35b519d

Browse files
committed
fix: discussion
1 parent 5fb3921 commit 35b519d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cms/djangoapps/contentstore/tests/test_tasks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def setUp(self):
236236
@mock.patch('cms.djangoapps.contentstore.tasks._write_broken_links_to_file', autospec=True)
237237
def test_check_broken_links_stores_broken_and_locked_urls(
238238
self,
239-
mock_write_links,
239+
mock_write_broken_links_to_file,
240240
mock_save_broken_links_file,
241241
mock_scan_course_for_links,
242242
_mock_user_task_status,
@@ -263,7 +263,7 @@ def test_check_broken_links_stores_broken_and_locked_urls(
263263
mock_user_task_artifact.assert_called_once_with(status=mock.ANY, name='BrokenLinks')
264264

265265
### Check that the correct links are written to the file
266-
mock_write_links.assert_called_once_with(self.expected_file_contents, mock.ANY)
266+
mock_write_broken_links_to_file.assert_called_once_with(self.expected_file_contents, mock.ANY)
267267

268268
### Check that _save_broken_links_file was called with the correct arguments
269269
mock_save_broken_links_file.assert_called_once_with(mock_user_task_artifact.return_value, mock.ANY)

0 commit comments

Comments
 (0)