Allow import of native XBlocks in draft
Added tests for importing a pure XBlock
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<chapter display_name="Test Chapter">
|
||||
<sequential url_name="b68bb50c4f1f41a3abeec1dac309087d"/>
|
||||
</chapter>
|
||||
1
common/test/data/pure_xblock_draft/course.xml
Normal file
1
common/test/data/pure_xblock_draft/course.xml
Normal file
@@ -0,0 +1 @@
|
||||
<course url_name="2012_Fall" org="edX" course="pure_xblock_draft"/>
|
||||
3
common/test/data/pure_xblock_draft/course/2012_Fall.xml
Normal file
3
common/test/data/pure_xblock_draft/course/2012_Fall.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<course display_name="Test Course" start="2014-01-01T00:00:00Z">
|
||||
<chapter url_name="150311f8087e47f4858f7db44df32ee5"/>
|
||||
</course>
|
||||
@@ -0,0 +1,3 @@
|
||||
<vertical display_name="Test" parent_sequential_url="i4x://edX/pure_xblock_draft/sequential/b68bb50c4f1f41a3abeec1dac309087d" index_in_children_list="0">
|
||||
<stubxblock test_field="set by xml" url_name="xblock_test" />
|
||||
</vertical>
|
||||
@@ -0,0 +1 @@
|
||||
<sequential display_name="Test Section"/>
|
||||
3
common/test/data/pure_xblock_public/course.xml
Normal file
3
common/test/data/pure_xblock_public/course.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<course org="edX" course="pure_xblock_public" url_name="2012_Fall">
|
||||
<stubxblock test_field="set by xml" url_name="xblock_test" />
|
||||
</course>
|
||||
Reference in New Issue
Block a user