Commit 2625d7cb by Vasyl Nakvasiuk

clean up test data

parent 36207bad
...@@ -332,7 +332,7 @@ class ImportTestCase(unittest.TestCase): ...@@ -332,7 +332,7 @@ class ImportTestCase(unittest.TestCase):
location = Location(location.tag, location.org, location.course, location = Location(location.tag, location.org, location.course,
'sequential', 'Problem_Demos') 'sequential', 'Problem_Demos')
module = modulestore.get_instance(course.id, location) module = modulestore.get_instance(course.id, location)
self.assertEqual(len(module.children), 3) self.assertEqual(len(module.children), 1)
def test_error_on_import(self): def test_error_on_import(self):
'''Check that when load_error_module is false, an exception is raised, rather than returning an ErrorModule''' '''Check that when load_error_module is false, an exception is raised, rather than returning an ErrorModule'''
......
<sequential> <sequential>
<problem name="test_6" showanswer="never" attempts="10" max_attempts="10" display_name="Melting Point and Pressure 1">
<startouttext/>
<p>How does the melting point of water (H2O) change with increasing pressure?</p>
<endouttext/>
<multiplechoiceresponse direction="vertical" randomize="yes">
<choicegroup type="MultipleChoice">
<choice location="random" correct="true" name="A"><text>decreases</text></choice>
<choice location="random" correct="false" name="B"><text>is unchanged</text></choice>
<choice location="random" correct="false" name="C"><text>increases</text></choice>
<choice location="random" correct="false" name="D"><text>increases and then decreases</text></choice>
</choicegroup>
</multiplechoiceresponse>
</problem>
<problem name="test_7" showanswer="never" attempts="10" max_attempts="10" display_name="Melting Point and Pressure 2">
<startouttext/>
<p>How does the melting point of water (H2O) change with increasing pressure?</p>
<endouttext/>
<multiplechoiceresponse direction="vertical" randomize="yes">
<choicegroup type="MultipleChoice">
<choice location="random" correct="true" name="A"><text>decreases</text></choice>
<choice location="random" correct="false" name="B"><text>is unchanged</text></choice>
<choice location="random" correct="false" name="C"><text>increases</text></choice>
<choice location="random" correct="false" name="D"><text>increases and then decreases</text></choice>
</choicegroup>
</multiplechoiceresponse>
</problem>
<vertical> <vertical>
<poll_question id="first_poll" display_name="first poll"> <poll_question id="first_poll" display_name="first poll">
<h3>What's the Right Thing to Do?</h3> <h3>What's the Right Thing to Do?</h3>
...@@ -37,94 +9,5 @@ ...@@ -37,94 +9,5 @@
<answer id="No">No</answer> <answer id="No">No</answer>
<answer id="Dont_know">Don't know</answer> <answer id="Dont_know">Don't know</answer>
</poll_question> </poll_question>
<!-- <conditional condition="answer" required="poll_question/first_poll" answer="Yes">
<test1></test1>
<test2>
<poll_question name="first_yes" display_name="first yes poll">
<h3>Yes?</h3>
<p>Really yes?</p>
<answer name="Yes">Yes</answer>
<answer name="No">No</answer>
</poll_question>
</test2>
</conditional> -->
<!--
<conditional condition="answer" required="poll_question/first_poll" answer="No">
<poll_question name="first_no" display_name="first no poll">
<h3>No?</h3>
<p>Are you sure?</p>
<answer name="Yes">Yes</answer>
<answer name="No">No</answer>
</poll_question>
</conditional>
-->
<!-- <conditional condition="answer" required="poll_question/first_poll" answer_value="not yes, not no">
<html>You can't decide</html>
</conditional> -->
<conditional condition="answer" required="poll_question/first_poll" answer="unanswered">
<html>You can't see this element until you've done the poll</html>
</conditional>
<!-- <conditional condition="answer" required="poll_question/first_poll">
<if answer_to="poll_question/first_poll" is="Yes">
<poll_question name="first_yes">
<h3>Yes?</h3>
<p>Really yes?</p>
<answer name="Yes">Yes</answer>
<answer name="No">No</answer>
</poll_question>
</if>
<if answer_to="poll_question/first_poll" is="no">
<poll_question name="first_no">
<h3>No?</h3>
<p>Are you sure?</p>
<answer name="Yes">Yes</answer>
<answer name="No">No</answer>
</poll_question>
</if>
<if answer_to="poll_question/first_poll" is="anything_else">
<html>You can't decide</html>
</if>
<if answer_to="poll_question/first_poll" is="unanswered">
<html>You can't see this element until you've done the poll</html>
</if>
</conditional>
<conditional condition="answer" required="poll_question/first_poll; poll_question/first_yes">
<if answer_to="poll_question/first_yes" is="Yes">
<html>Third level of question branching, A</html>
</if>
<if answer_to="poll_question/first_yes" is="anything_else">
<html>Third level of question branching, B</html>
</if>
</conditional> -->
</vertical> </vertical>
<!-- <conditional condition="require_completed" required="problem/test_6; problem/test_7">
<video youtube="1.0:hbpmBYE86go" url_name="A1V1_Video_Resources" display_name="Synthetic diamonds">
<source src="https://s3.amazonaws.com/edx-course-videos/mit-3091x/M-3091X-FA12-SynthDiam_100.mp4"/>
</video>
<problem name="test_cond_1" showanswer="never" attempts="10" max_attempts="10" display_name="Melting Point and Pressure">
<startouttext/>
<p>How does the melting point of water (H2O) change with increasing pressure?</p>
<endouttext/>
<multiplechoiceresponse direction="vertical" randomize="yes">
<choicegroup type="MultipleChoice">
<choice location="random" correct="true" name="A"><text>decreases</text></choice>
<choice location="random" correct="false" name="B"><text>is unchanged</text></choice>
<choice location="random" correct="false" name="C"><text>increases</text></choice>
<choice location="random" correct="false" name="D"><text>increases and then decreases</text></choice>
</choicegroup>
</multiplechoiceresponse>
</problem>
<video youtube="1.0:hbpmBYE86go" url_name="A1V1_Video_Resources1" display_name="Synthetic diamonds1">
<source src="https://s3.amazonaws.com/edx-course-videos/mit-3091x/M-3091X-FA12-SynthDiam_100.mp4"/>
</video>
</conditional> -->
</sequential> </sequential>
<sequential>
<vertical>
<problem showanswer="never" attempts="1" display_name="Melting Point and Pressure">
<startouttext/>
<p>How does the melting point of water (H2O) change with increasing pressure?</p>
<endouttext/>
<multiplechoiceresponse direction="vertical" randomize="yes">
<choicegroup type="MultipleChoice">
<choice location="random" correct="true" name="A"><text>decreases</text></choice>
<choice location="random" correct="false" name="B"><text>is unchanged</text></choice>
<choice location="random" correct="false" name="C"><text>increases</text></choice>
<choice location="random" correct="false" name="D"><text>increases and then decreases</text></choice>
</choicegroup>
</multiplechoiceresponse>
</problem>
</vertical>
<vertical>
<poll>
<question id="1" upvote="2">
<!-- After upvote - follow up question, after downvote - no followup -->
<!-- default is to show plot, upvote=end, downvote = end -->
<h3>What's the Right Thing to Do?</h3>
<p>Suppose four shipwrecked sailors are stranded at sea in a lifeboat, without
food or water. Would it be wrong for three of them to kill and eat the cabin
boy, in order to save their own lives?</p>
</question>
<question id="2" show_stats="no">
Question text
</question>
</poll>
<poll>
<question id="1" upvote="2" downvote="3">
<h3>What's the Right Thing to Do?</h3>
<p>Suppose four shipwrecked sailors are stranded at sea in a lifeboat, without
food or water. Would it be wrong for three of them to kill and eat the cabin
boy, in order to save their own lives?</p>
</question>
<question id="2">
<h3>What's the Right Thing to Do?</h3>
<p>Should they try to swim across the ocean?</p>
</question>
<question id="3" show_stats="no">
<h3>What's the Right Thing to Do?</h3>
<p>Should they try catch fish</p>
</question>
</poll>
</vertical>
<!-- <conditional condition="require_completed" required="tag/url_name1 tag/url_name2">
<video youtube="1.0:80lyCgMVIiA" url_name="A1V1_Video_Resources" display_name="Synthetic diamonds">
<source src="https://s3.amazonaws.com/edx-course-videos/mit-3091x/M-3091X-FA12-SynthDiam_100.mp4"/>
</video>
</conditional> -->
</sequential>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment