File tree 1 file changed +2
-2
lines changed
cms/djangoapps/contentstore/tests
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ def setUp(self):
236
236
@mock .patch ('cms.djangoapps.contentstore.tasks._write_broken_links_to_file' , autospec = True )
237
237
def test_check_broken_links_stores_broken_and_locked_urls (
238
238
self ,
239
- mock_write_links ,
239
+ mock_write_broken_links_to_file ,
240
240
mock_save_broken_links_file ,
241
241
mock_scan_course_for_links ,
242
242
_mock_user_task_status ,
@@ -263,7 +263,7 @@ def test_check_broken_links_stores_broken_and_locked_urls(
263
263
mock_user_task_artifact .assert_called_once_with (status = mock .ANY , name = 'BrokenLinks' )
264
264
265
265
### 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 )
267
267
268
268
### Check that _save_broken_links_file was called with the correct arguments
269
269
mock_save_broken_links_file .assert_called_once_with (mock_user_task_artifact .return_value , mock .ANY )
You can’t perform that action at this time.
0 commit comments