Upgrade mock BOM-596 (#21717)

This commit is contained in:
Jeremy Bowman
2019-09-24 10:14:17 -04:00
committed by GitHub
parent 4c9af183cb
commit 553d35e53e
24 changed files with 67 additions and 116 deletions

View File

@@ -145,7 +145,7 @@ class AwardProgramCertificatesTestCase(CatalogIntegrationMixin, CredentialsApiCo
programs.
"""
tasks.award_program_certificates.delay(self.student.username).get()
mock_get_completed_programs.assert_called(self.site, self.student)
mock_get_completed_programs.assert_any_call(self.site, self.student)
@ddt.data(
([1], [2, 3]),

View File

@@ -343,7 +343,6 @@ class BackpopulateProgramCredentialsTests(CatalogIntegrationMixin, CredentialsAp
call_command('backpopulate_program_credentials', commit=True)
mock_task.assert_called_once_with(self.alice.username)
mock_task.assert_not_called(self.bob.username)
@mock.patch(COMMAND_MODULE + '.logger.exception')
def test_handle_enqueue_failure(self, mock_log, mock_task, mock_get_programs):