All cms unit test no longer rely on the full course.
Factories were used when possible but tests depending on importing or things not manageable by factories used the toy course. New files were added to include the needed functionality. Most files are blank or have minimal xml needed to work
This commit is contained in:
3
common/test/data/toy/chapter/handout_container.xml
Normal file
3
common/test/data/toy/chapter/handout_container.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<sequential>
|
||||
<html> <a href="/static/handouts/sample_handout.txt"> handouts</a>
|
||||
</sequential>
|
||||
3
common/test/data/toy/chapter/vertical_container.xml
Normal file
3
common/test/data/toy/chapter/vertical_container.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<sequential>
|
||||
<sequential filename='vertical_sequential' slug='vertical_sequential' />
|
||||
</sequential>
|
||||
@@ -11,4 +11,6 @@
|
||||
</chapter>
|
||||
<chapter url_name="secret:magic"/>
|
||||
<chapter url_name="poll_test"/>
|
||||
<chapter url_name="vertical_container"/>
|
||||
<chapter url_name="handout_container"/>
|
||||
</course>
|
||||
|
||||
1
common/test/data/toy/info/handouts.html
Normal file
1
common/test/data/toy/info/handouts.html
Normal file
@@ -0,0 +1 @@
|
||||
<a href='/static/handouts/sample_handout.txt'>Sample</a>
|
||||
3
common/test/data/toy/sequential/vertical_sequential.xml
Normal file
3
common/test/data/toy/sequential/vertical_sequential.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<sequential>
|
||||
<vertical filename="vertical_test" slug="vertical_test" />
|
||||
</sequential>
|
||||
7
common/test/data/toy/vertical/vertical_test.xml
Normal file
7
common/test/data/toy/vertical/vertical_test.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<sequential>
|
||||
<poll_question name="T1_changemind_poll_foo" display_name="Change your answer" reset="false">
|
||||
<p>Have you changed your mind?</p>
|
||||
<answer id="yes">Yes</answer>
|
||||
<answer id="no">No</answer>
|
||||
</poll_question>
|
||||
</sequential>
|
||||
Reference in New Issue
Block a user