Skip to content

Commit

Permalink
fix: discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperhodge committed Jan 16, 2025
1 parent 5fb3921 commit 35b519d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cms/djangoapps/contentstore/tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def setUp(self):
@mock.patch('cms.djangoapps.contentstore.tasks._write_broken_links_to_file', autospec=True)
def test_check_broken_links_stores_broken_and_locked_urls(
self,
mock_write_links,
mock_write_broken_links_to_file,
mock_save_broken_links_file,
mock_scan_course_for_links,
_mock_user_task_status,
Expand All @@ -263,7 +263,7 @@ def test_check_broken_links_stores_broken_and_locked_urls(
mock_user_task_artifact.assert_called_once_with(status=mock.ANY, name='BrokenLinks')

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

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

0 comments on commit 35b519d

Please sign in to comment.