def _scores_sent_with_args(self, *args, **kwargs): """ Return True if scores are sent to the LTI consumer when the command is called with the specified arguments. """ cmd = resend_lti_scores.Command() self._configure_lti(UsageKey.from_string(self.lti_block)) with patch('lms.djangoapps.lti_provider.outcomes.send_score_update') as mock_update: cmd.handle(*args, **kwargs) return mock_update.called
def _get_arg_parser(self): """ Returns the argparse parser for the resend_lti_scores command. """ cmd = resend_lti_scores.Command() return cmd.create_parser('./manage.py', 'resend_lti_scores')