-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add fixtures for special exams
- Loading branch information
Showing
6 changed files
with
130 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...kends/processors/xapi/tests/fixtures/expected/edx.special_exam.timed.attempt.created.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", | ||
"version": "1.0.3", | ||
"actor": { | ||
"objectType": "Agent", | ||
"account": { "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", "homePage": "http://localhost:18000" } | ||
}, | ||
"verb": { "id": "http://adlnet.gov/expapi/verbs/initialized", "display": { "en": "initialized" } }, | ||
"object": { | ||
"id": "block-v1:edX+DemoX+Demo_Course+type@sequential+block@5b4bf8d7d41c4070b299abefed74155e", | ||
"objectType": "Activity", | ||
"definition": { | ||
"name": { "en": "Subsection" }, | ||
"type": "http://adlnet.gov/expapi/activities/assessment", | ||
"extensions": { | ||
"https://w3id.org/xapi/openedx/extension/practice-exam": false, | ||
"https://w3id.org/xapi/openedx/extension/proctored-exam": false | ||
} | ||
} | ||
}, | ||
"timestamp": "2023-09-08T15:58:04.833393+00:00", | ||
"context": { | ||
"contextActivities": { | ||
"parent": [ | ||
{ | ||
"id": "http://localhost:18000/course/course-v1:edX+DemoX+Demo_Course", | ||
"objectType": "Activity", | ||
"definition": { | ||
"name": { "en-US": "Demonstration Course" }, | ||
"type": "http://adlnet.gov/expapi/activities/course" | ||
} | ||
} | ||
], | ||
"grouping": [ | ||
{ | ||
"id": "438AD672-DE2C-4F0B-8876-35444E7DD746", | ||
"objectType": "Activity", | ||
"definition": { | ||
"name": { "en": "Subsection" }, | ||
"type": "http://adlnet.gov/expapi/activities/attempt", | ||
"extensions": { | ||
"https://w3id.org/xapi/openedx/extension/id": 1 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...nds/processors/xapi/tests/fixtures/expected/edx.special_exam.timed.attempt.submitted.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"id": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", | ||
"version": "1.0.3", | ||
"actor": { | ||
"objectType": "Agent", | ||
"account": { "name": "32e08e30-f8ae-4ce2-94a8-c2bfe38a70cb", "homePage": "http://localhost:18000" } | ||
}, | ||
"verb": { "id": "http://adlnet.gov/expapi/verbs/terminated", "display": { "en": "terminated" } }, | ||
"object": { | ||
"id": "block-v1:edX+DemoX+Demo_Course+type@sequential+block@5b4bf8d7d41c4070b299abefed74155e", | ||
"objectType": "Activity", | ||
"definition": { | ||
"name": { "en": "Subsection" }, | ||
"type": "http://adlnet.gov/expapi/activities/assessment", | ||
"extensions": { | ||
"https://w3id.org/xapi/openedx/extension/practice-exam": false, | ||
"https://w3id.org/xapi/openedx/extension/proctored-exam": false | ||
} | ||
} | ||
}, | ||
"timestamp": "2023-09-08T16:20:53.604375+00:00", | ||
"context": { | ||
"contextActivities": { | ||
"parent": [ | ||
{ | ||
"id": "http://localhost:18000/course/course-v1:edX+DemoX+Demo_Course", | ||
"objectType": "Activity", | ||
"definition": { | ||
"name": { "en-US": "Demonstration Course" }, | ||
"type": "http://adlnet.gov/expapi/activities/course" | ||
} | ||
} | ||
], | ||
"grouping": [ | ||
{ | ||
"id": "438AD672-DE2C-4F0B-8876-35444E7DD746", | ||
"objectType": "Activity", | ||
"definition": { | ||
"name": { "en": "Subsection" }, | ||
"type": "http://adlnet.gov/expapi/activities/attempt", | ||
"extensions": { | ||
"https://w3id.org/xapi/openedx/extension/attempt-started": "2023-09-08T15:58:04.838598+00:00", | ||
"https://w3id.org/xapi/openedx/extension/attempt-completed": "2023-09-08T16:20:53.577698+00:00", | ||
"https://w3id.org/xapi/openedx/extension/attempt-time": 1368.7657, | ||
"https://w3id.org/xapi/openedx/extension/id": 1 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters