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
3b28e328
Commit
3b28e328
authored
Jan 15, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable export of testcenter_exam from course module (and add test).
parent
cd2a704a
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
81 additions
and
2 deletions
+81
-2
common/lib/xmodule/xmodule/tests/test_export.py
+4
-0
common/lib/xmodule/xmodule/xml_module.py
+8
-2
common/test/data/test_exam_registration/README.md
+2
-0
common/test/data/test_exam_registration/course.xml
+2
-0
common/test/data/test_exam_registration/course/2012_Fall.xml
+15
-0
common/test/data/test_exam_registration/html/toylab.html
+3
-0
common/test/data/test_exam_registration/html/toylab.xml
+2
-0
common/test/data/test_exam_registration/policies/2012_Fall.json
+42
-0
common/test/data/test_exam_registration/roots/2012_Fall.xml
+2
-0
lms/envs/common.py
+1
-0
No files found.
common/lib/xmodule/xmodule/tests/test_export.py
View file @
3b28e328
...
...
@@ -124,3 +124,7 @@ class RoundTripTestCase(unittest.TestCase):
def
test_graphicslidertool_roundtrip
(
self
):
#Test graphicslidertool xmodule to see if it exports correctly
self
.
check_export_roundtrip
(
DATA_DIR
,
"graphic_slider_tool"
)
def
test_exam_registration_roundtrip
(
self
):
# Test exam_registration xmodule to see if it exports correctly
self
.
check_export_roundtrip
(
DATA_DIR
,
"test_exam_registration"
)
common/lib/xmodule/xmodule/xml_module.py
View file @
3b28e328
...
...
@@ -94,12 +94,18 @@ class XmlDescriptor(XModuleDescriptor):
'start'
,
'due'
,
'graded'
,
'display_name'
,
'url_name'
,
'hide_from_toc'
,
'ispublic'
,
# if True, then course is listed for all users; see
'xqa_key'
,
# for xqaa server access
# information about testcenter exams is a dict (of dicts), not a string,
# so it cannot be easily exportable as a course element's attribute.
'testcenter_info'
,
# VS[compat] Remove once unused.
'name'
,
'slug'
)
metadata_to_strip
=
(
'data_dir'
,
# VS[compat] -- remove the below attrs once everything is in the CMS
'course'
,
'org'
,
'url_name'
,
'filename'
)
# information about testcenter exams is a dict (of dicts), not a string,
# so it cannot be easily exportable as a course element's attribute.
'testcenter_info'
,
# VS[compat] -- remove the below attrs once everything is in the CMS
'course'
,
'org'
,
'url_name'
,
'filename'
)
# A dictionary mapping xml attribute names AttrMaps that describe how
# to import and export them
...
...
common/test/data/test_exam_registration/README.md
0 → 100644
View file @
3b28e328
Simple course with test center exam information included in policy.json.
common/test/data/test_exam_registration/course.xml
0 → 120000
View file @
3b28e328
roots/2012_Fall.xml
\ No newline at end of file
common/test/data/test_exam_registration/course/2012_Fall.xml
0 → 100644
View file @
3b28e328
<course>
<chapter
url_name=
"Overview"
>
<videosequence
url_name=
"Toy_Videos"
>
<html
url_name=
"toylab"
/>
<video
url_name=
"Video_Resources"
youtube=
"1.0:1bK-WdDi6Qw"
/>
</videosequence>
<video
url_name=
"Welcome"
youtube=
"1.0:p2Q6BrNhdh8"
/>
</chapter>
<chapter
url_name=
"Ch2"
>
<html
url_name=
"test_html"
>
<h2>
Welcome
</h2>
</html>
</chapter>
</course>
common/test/data/test_exam_registration/html/toylab.html
0 → 100644
View file @
3b28e328
<b>
Lab 2A: Superposition Experiment
</b>
<p>
Isn't the toy course great?
</p>
common/test/data/test_exam_registration/html/toylab.xml
0 → 100644
View file @
3b28e328
<html
filename=
"toylab.html"
/>
\ No newline at end of file
common/test/data/test_exam_registration/policies/2012_Fall.json
0 → 100644
View file @
3b28e328
{
"course/2012_Fall"
:
{
"graceperiod"
:
"2 days 5 hours 59 minutes 59 seconds"
,
"start"
:
"2011-07-17T12:00"
,
"display_name"
:
"Toy Course"
,
"testcenter_info"
:
{
"Midterm_Exam"
:
{
"Exam_Series_Code"
:
"Midterm_Exam"
,
"First_Eligible_Appointment_Date"
:
"2012-11-09T00:00"
,
"Last_Eligible_Appointment_Date"
:
"2012-11-09T23:59"
},
"Final_Exam"
:
{
"Exam_Series_Code"
:
"mit6002xfall12a"
,
"Exam_Display_Name"
:
"Final Exam"
,
"First_Eligible_Appointment_Date"
:
"2013-01-25T00:00"
,
"Last_Eligible_Appointment_Date"
:
"2013-01-25T23:59"
,
"Registration_Start_Date"
:
"2013-01-01T00:00"
,
"Registration_End_Date"
:
"2013-01-21T23:59"
}
}
},
"chapter/Overview"
:
{
"display_name"
:
"Overview"
},
"chapter/Ch2"
:
{
"display_name"
:
"Chapter 2"
,
"start"
:
"2015-07-17T12:00"
},
"videosequence/Toy_Videos"
:
{
"display_name"
:
"Toy Videos"
,
"format"
:
"Lecture Sequence"
},
"html/toylab"
:
{
"display_name"
:
"Toy lab"
},
"video/Video_Resources"
:
{
"display_name"
:
"Video Resources"
},
"video/Welcome"
:
{
"display_name"
:
"Welcome"
}
}
common/test/data/test_exam_registration/roots/2012_Fall.xml
0 → 100644
View file @
3b28e328
<course
org=
"edX"
course=
"test_start_date"
url_name=
"2012_Fall"
/>
\ No newline at end of file
lms/envs/common.py
View file @
3b28e328
...
...
@@ -343,6 +343,7 @@ MOCK_STAFF_GRADING = False
################################# Pearson TestCenter config ################
PEARSONVUE_SIGNINPAGE_URL
=
"https://www1.pearsonvue.com/testtaker/signin/SignInPage/EDX"
# TESTCENTER_ACCOMMODATION_REQUEST_EMAIL = "exam-help@edx.org"
################################# Peer grading config #####################
...
...
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