feat: Added enterprise uuid in event context for enterprise enrolment events

This commit is contained in:
RehanAziz
2021-07-08 10:58:24 +05:00
parent 36319bda48
commit e0efd9bbf2
10 changed files with 46 additions and 22 deletions

View File

@@ -174,7 +174,11 @@ class GradesEventIntegrationTest(ProblemSubmissionTestMixin, SharedModuleStoreTe
# make sure the tracker's context is updated with course info
for args in events_tracker.get_tracker().context.call_args_list:
assert args[0][1] == {'course_id': str(self.course.id), 'org_id': str(self.course.org)}
assert args[0][1] == {
'course_id': str(self.course.id),
'enterprise_uuid': '',
'org_id': str(self.course.org)
}
event_transaction_id = events_tracker.emit.mock_calls[0][1][1]['event_transaction_id']
events_tracker.emit.assert_has_calls(