add another piece of test data. just an img tag.
This commit is contained in:
@@ -1082,6 +1082,13 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
|
||||
)
|
||||
self.assertIn('<p style="font:italic bold 72px/30px Georgia, serif; color: red; ">', html_module.data)
|
||||
|
||||
# get the sample HTML with just a simple <img> tag information
|
||||
html_module = module_store.get_instance(
|
||||
'edX/toy/2012_Fall',
|
||||
Location(['i4x', 'edX', 'toy', 'html', 'just_img'])
|
||||
)
|
||||
self.assertIn('<img src="/static/foo_bar.jpg" />', html_module.data)
|
||||
|
||||
def test_course_handouts_rewrites(self):
|
||||
module_store = modulestore('direct')
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<html url_name="nonportable_link"/>
|
||||
<html url_name="badlink"/>
|
||||
<html url_name="with_styling"/>
|
||||
<html url_name="just_img"/>
|
||||
<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"/>
|
||||
|
||||
1
common/test/data/toy/html/just_img.html
Normal file
1
common/test/data/toy/html/just_img.html
Normal file
@@ -0,0 +1 @@
|
||||
<img src="/static/foo_bar.jpg" />
|
||||
1
common/test/data/toy/html/just_img.xml
Normal file
1
common/test/data/toy/html/just_img.xml
Normal file
@@ -0,0 +1 @@
|
||||
<html filename="just_img.html"/>
|
||||
Reference in New Issue
Block a user