Skip to content

Commit

Permalink
fix: failing tests in the xapi module
Browse files Browse the repository at this point in the history
  • Loading branch information
tecoholic committed Sep 14, 2023
1 parent c9872ee commit bc64c2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,7 @@ def test_is_already_transmitted(self):

Command.is_already_transmitted(xapi_transmissions, user_id, course_id)

@mock.patch(
'integrated_channels.xapi.utils.is_success_response',
mock.MagicMock(return_value=False)
)
@mock.patch(MODULE_PATH + 'is_success_response', mock.MagicMock(return_value=False))
@mock.patch(MODULE_PATH + 'send_course_enrollment_statement')
def test_transmit_course_enrollments_transmit_fail_skip(self, mock_send_statement):
# pylint: disable=import-outside-toplevel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def setUp(self):
self.object_id_course = 'https://{domain}/xapi/activities/course/{activity_id}'.format(
domain=self.site.domain,
activity_id=self.course_overview.course_key)
self.plain_course_id = self.course_overview.course_key
self.plain_course_id = self.course_overview.id

self.object_id_courserun = 'https://{domain}/xapi/activities/courserun/{activity_id}'.format(
domain=self.site.domain,
Expand Down

0 comments on commit bc64c2c

Please sign in to comment.