Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
b209018c
Commit
b209018c
authored
Nov 06, 2012
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding tests
parent
6cdc4150
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
62 additions
and
0 deletions
+62
-0
common/lib/xmodule/xmodule/tests/test_import.py
+7
-0
common/test/data/self_assessment/README.md
+1
-0
common/test/data/self_assessment/course.xml
+2
-0
common/test/data/self_assessment/course/2012_Fall.xml
+6
-0
common/test/data/self_assessment/html/Welcome.xml
+7
-0
common/test/data/self_assessment/policies/2012_Fall.json
+24
-0
common/test/data/self_assessment/roots/2012_Fall.xml
+1
-0
common/test/data/self_assessment/selfassessment/SampleQuestion.xml
+14
-0
No files found.
common/lib/xmodule/xmodule/tests/test_import.py
View file @
b209018c
...
...
@@ -311,3 +311,10 @@ class ImportTestCase(unittest.TestCase):
system
=
self
.
get_system
(
False
)
self
.
assertRaises
(
etree
.
XMLSyntaxError
,
system
.
process_xml
,
bad_xml
)
def
test_selfassessment_import_export
(
self
):
'''
Check to see if definition_from_xml and definition_to_xml in self_assessment_module.py function.
'''
common/test/data/self_assessment/README.md
0 → 100644
View file @
b209018c
This is a very very simple course, useful for debugging self assessment code.
common/test/data/self_assessment/course.xml
0 → 120000
View file @
b209018c
roots/2012_Fall.xml
\ No newline at end of file
common/test/data/self_assessment/course/2012_Fall.xml
0 → 100644
View file @
b209018c
<course>
<chapter
url_name=
"Overview"
>
<html
url_name=
"Welcome"
/>
<selfassessment
url_name=
"SampleQuestion"
/>
</chapter>
</course>
common/test/data/self_assessment/html/Welcome.xml
0 → 100644
View file @
b209018c
<html>
<head>
</head>
<body>
Hello and welcome to the test course for self assessment.
</body>
</html>
common/test/data/self_assessment/policies/2012_Fall.json
0 → 100644
View file @
b209018c
{
"course/2012_Fall"
:
{
"graceperiod"
:
"2 days 5 hours 59 minutes 59 seconds"
,
"start"
:
"2015-07-17T12:00"
,
"display_name"
:
"Toy Course"
,
"graded"
:
"true"
},
"chapter/Overview"
:
{
"display_name"
:
"Overview"
},
"videosequence/Toy_Videos"
:
{
"display_name"
:
"Toy Videos"
,
"format"
:
"Lecture Sequence"
},
"html/secret:toylab"
:
{
"display_name"
:
"Toy lab"
},
"video/Video_Resources"
:
{
"display_name"
:
"Video Resources"
},
"video/Welcome"
:
{
"display_name"
:
"Welcome"
}
}
common/test/data/self_assessment/roots/2012_Fall.xml
0 → 100644
View file @
b209018c
<course
org=
"edX"
course=
"sa_test"
url_name=
"2012_Fall"
/>
common/test/data/self_assessment/selfassessment/SampleQuestion.xml
0 → 100644
View file @
b209018c
<selfassessment
attempts=
'10'
>
<prompt>
What is the meaning of life?
</prompt>
<rubric>
This is a rubric.
</rubric>
<submitmessage>
Thanks for your submission!
</submitmessage>
<hintmessage>
Enter a hint below:
</hintmessage>
</selfassessment>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment