Add tests for imports with unicode filenames
This commit is contained in:
1
common/test/data/test_unicode/about/end_date.html
Normal file
1
common/test/data/test_unicode/about/end_date.html
Normal file
@@ -0,0 +1 @@
|
||||
TBD
|
||||
@@ -0,0 +1,3 @@
|
||||
<sequential>
|
||||
<html> <a href="/static/handouts/sample_handout.txt"> handouts</a> </html>
|
||||
</sequential>
|
||||
7
common/test/data/test_unicode/chapter/poll_test.xml
Normal file
7
common/test/data/test_unicode/chapter/poll_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>
|
||||
3
common/test/data/test_unicode/chapter/secret/magic.xml
Normal file
3
common/test/data/test_unicode/chapter/secret/magic.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<chapter>
|
||||
<video url_name="toyvideo" youtube_id_1_0="OEoXaMPEzfMA" display_name="toyvideo"/>
|
||||
</chapter>
|
||||
1
common/test/data/test_unicode/course.xml
Normal file
1
common/test/data/test_unicode/course.xml
Normal file
@@ -0,0 +1 @@
|
||||
<course org="edX" course="test_unicode" url_name="2012_Fall"/>
|
||||
20
common/test/data/test_unicode/course/2012_Fall.xml
Normal file
20
common/test/data/test_unicode/course/2012_Fall.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<course>
|
||||
<textbook title="Textbook" book_url="https://s3.amazonaws.com/edx-textbooks/guttag_computation_v3/"/>
|
||||
<chapter display_name="Overview">
|
||||
<videosequence url_name="Toy_Videos">
|
||||
<html url_name="secret:toylab"/>
|
||||
<html url_name="toyjumpto"/>
|
||||
<html url_name="toyhtml"/>
|
||||
<html url_name="nonportable"/>
|
||||
<html url_name="nonportable_link"/>
|
||||
<video url_name="Video_Resources" youtube_id_1_0="1bK-WdDi6Qw" display_name="Video Resources"/>
|
||||
</videosequence>
|
||||
<video url_name="Welcome" youtube_id_1_0="p2Q6BrNhdh8" display_name="Welcome"/>
|
||||
<video url_name="video_123456789012" youtube_id_1_0="p2Q6BrNhdh8" display_name='Test Video'/>
|
||||
<video url_name="video_4f66f493ac8f" youtube_id_1_0="p2Q6BrNhdh8"/>
|
||||
</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/test_unicode/info/handouts.html
Normal file
1
common/test/data/test_unicode/info/handouts.html
Normal file
@@ -0,0 +1 @@
|
||||
<a href='/static/handouts/sample_handout.txt'>Sample</a>
|
||||
33
common/test/data/test_unicode/policies/2012_Fall.json
Normal file
33
common/test/data/test_unicode/policies/2012_Fall.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"course/2012_Fall": {
|
||||
"graceperiod": "2 days 5 hours 59 minutes 59 seconds",
|
||||
"start": "2015-07-17T12:00",
|
||||
"display_name": "Toy Course",
|
||||
"graded": "true",
|
||||
"tabs": [
|
||||
{"type": "courseware"},
|
||||
{"type": "course_info", "name": "Course Info"},
|
||||
{"type": "static_tab", "url_slug": "syllabus", "name": "ßyllabus"},
|
||||
{"type": "static_tab", "url_slug": "resources", "name": "Resources"},
|
||||
{"type": "discussion", "name": "∂iscussion"},
|
||||
{"type": "wiki", "name": "∑iki"},
|
||||
{"type": "progress", "name": "πrogress"}
|
||||
]
|
||||
},
|
||||
"chapter/Overview": {
|
||||
"display_name": "O√erview"
|
||||
},
|
||||
"videosequence/Toy_Videos": {
|
||||
"display_name": "†oy Videos",
|
||||
"format": "Lecture Sequence"
|
||||
},
|
||||
"html/secret:toylab": {
|
||||
"display_name": "Toy lab"
|
||||
},
|
||||
"video/Video_Resources": {
|
||||
"display_name": "Video Resources"
|
||||
},
|
||||
"video/Welcome": {
|
||||
"display_name": "Welcome"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<sequential>
|
||||
<vertical filename="vertical_test" slug="vertical_test" />
|
||||
<html slug="unicode">…</html>
|
||||
</sequential>
|
||||
13
common/test/data/test_unicode/static/unicø∂é.txt
Normal file
13
common/test/data/test_unicode/static/unicø∂é.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
μῆνιν ἄειδε θεὰ Πηληϊάδεω Ἀχιλῆος
|
||||
οὐλομένην, ἣ μυρί᾽ Ἀχαιοῖς ἄλγε᾽ ἔθηκε,
|
||||
πολλὰς δ᾽ ἰφθίμους ψυχὰς Ἄϊδι προΐαψεν
|
||||
ἡρώων, αὐτοὺς δὲ ἑλώρια τεῦχε κύνεσσιν
|
||||
5οἰωνοῖσί τε πᾶσι, Διὸς δ᾽ ἐτελείετο βουλή,
|
||||
ἐξ οὗ δὴ τὰ πρῶτα διαστήτην ἐρίσαντε
|
||||
Ἀτρεΐδης τε ἄναξ ἀνδρῶν καὶ δῖος Ἀχιλλεύς.
|
||||
τίς τ᾽ ἄρ σφωε θεῶν ἔριδι ξυνέηκε μάχεσθαι;
|
||||
Λητοῦς καὶ Διὸς υἱός: ὃ γὰρ βασιλῆϊ χολωθεὶς
|
||||
10νοῦσον ἀνὰ στρατὸν ὄρσε κακήν, ὀλέκοντο δὲ λαοί,
|
||||
οὕνεκα τὸν Χρύσην ἠτίμασεν ἀρητῆρα
|
||||
Ἀτρεΐδης: ὃ γὰρ ἦλθε θοὰς ἐπὶ νῆας Ἀχαιῶν
|
||||
λυσόμενός τε θύγατρα φέρων τ᾽ ἀπερείσι᾽ ἄποινα,
|
||||
@@ -0,0 +1 @@
|
||||
<p>this ƒîlë should be in the contentstore</p>
|
||||
1
common/test/data/test_unicode/tabs/syllabus.html
Normal file
1
common/test/data/test_unicode/tabs/syllabus.html
Normal file
@@ -0,0 +1 @@
|
||||
<h1>This is a syllabus</h1>
|
||||
1
common/test/data/test_unicode/tabs/®esources.html
Normal file
1
common/test/data/test_unicode/tabs/®esources.html
Normal file
@@ -0,0 +1 @@
|
||||
<div>resources!</div>
|
||||
3
common/test/data/test_unicode/vertical/vertical_test.xml
Normal file
3
common/test/data/test_unicode/vertical/vertical_test.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<vertical>
|
||||
<video url_name="separate_file_video"/>
|
||||
</vertical>
|
||||
1
common/test/data/test_unicode/video/a_video.xml
Normal file
1
common/test/data/test_unicode/video/a_video.xml
Normal file
@@ -0,0 +1 @@
|
||||
<video display_name="default" youtube_id_0_75="JMD_ifUUfsU" youtube_id_1_0="OEoXaMPEzfM" youtube_id_1_25="AKqURZnYqpk" youtube_id_1_5="DYpADpL7jAY" name="sample_video"/>
|
||||
Reference in New Issue
Block a user