-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quiz-data - First export quiz unit test
- Loading branch information
Showing
8 changed files
with
171 additions
and
306 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
42 changes: 42 additions & 0 deletions
42
testrepoparent/testrepo/fakeexportquiz_course_course-1_question_manifest.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,42 @@ | ||
{ | ||
"context": { | ||
"contextlevel": 10, | ||
"coursename": "", | ||
"modulename": "", | ||
"coursecategory": "", | ||
"instanceid": "", | ||
"defaultsubdirectory": "top\/cat-2", | ||
"defaultsubcategoryid": 5 | ||
}, | ||
"questions": [ | ||
{ | ||
"questionbankentryid": 35001, | ||
"filepath": "\/top\/cat-1\/First-Question.xml", | ||
"importedversion": "1", | ||
"exportedversion": "1", | ||
"format": "xml" | ||
}, | ||
{ | ||
"questionbankentryid": 35002, | ||
"filepath": "\/top\/cat-2\/subcat-2_1\/Third-Question.xml", | ||
"importedversion": "6", | ||
"exportedversion": "7", | ||
"format": "xml" | ||
}, | ||
{ | ||
"questionbankentryid": 35004, | ||
"filepath": "\/top\/cat-2\/subcat-2_1\/Fourth-Question.xml", | ||
"importedversion": "1", | ||
"exportedversion": "1", | ||
"currentcommit": "35004test", | ||
"format": "xml" | ||
}, | ||
{ | ||
"questionbankentryid": 35003, | ||
"filepath": "\/top\/cat-2\/Second-Question.xml", | ||
"importedversion": "1", | ||
"exportedversion": "1", | ||
"format": "xml" | ||
} | ||
] | ||
} |
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
20 changes: 20 additions & 0 deletions
20
...oparent/testrepo_quiz_quiz-1/fakeexportquiz_module_course-1_quiz-1_question_manifest.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,20 @@ | ||
{ | ||
"context": { | ||
"contextlevel": 70, | ||
"coursename": "", | ||
"modulename": "", | ||
"coursecategory": "", | ||
"instanceid": "", | ||
"defaultsubdirectory": "top", | ||
"defaultsubcategoryid": 5 | ||
}, | ||
"questions": [ | ||
{ | ||
"questionbankentryid":"36001", | ||
"filepath": "\/top\/Quiz-Question.xml", | ||
"importedversion": "1", | ||
"exportedversion": "1", | ||
"format": "xml" | ||
} | ||
] | ||
} |
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,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<quiz> | ||
<question type="shortanswer"> | ||
<name> | ||
<text>Quiz Question</text> | ||
</name> | ||
<questiontext format="html"> | ||
<text><![CDATA[<p dir="ltr" style="text-align: left;">This is a test question.<br></p>]]></text> | ||
</questiontext> | ||
<generalfeedback format="html"> | ||
<text></text> | ||
</generalfeedback> | ||
<defaultgrade>1</defaultgrade> | ||
<penalty>0.3333333</penalty> | ||
<hidden>0</hidden> | ||
<idnumber></idnumber> | ||
<usecase>0</usecase> | ||
<answer fraction="100" format="moodle_auto_format"> | ||
<text>This is a test answer.</text> | ||
<feedback format="html"> | ||
<text></text> | ||
</feedback> | ||
</answer> | ||
</question> | ||
</quiz> |
12 changes: 12 additions & 0 deletions
12
testrepoparent/testrepo_quiz_quiz-1/top/gitsync_category.xml
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,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<quiz> | ||
<question type="category"> | ||
<category> | ||
<text>top/cat 1</text> | ||
</category> | ||
<info format="moodle_auto_format"> | ||
<text>First imported folder</text> | ||
</info> | ||
<idnumber></idnumber> | ||
</question> | ||
</quiz> |
Oops, something went wrong.