Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d523167b
Commit
d523167b
authored
Aug 20, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add another piece of test data. just an img tag.
parent
b8a8b202
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
cms/djangoapps/contentstore/tests/test_contentstore.py
+7
-0
common/test/data/toy/course/2012_Fall.xml
+1
-0
common/test/data/toy/html/just_img.html
+2
-0
common/test/data/toy/html/just_img.xml
+2
-0
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
d523167b
...
...
@@ -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'
)
...
...
common/test/data/toy/course/2012_Fall.xml
View file @
d523167b
...
...
@@ -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"
/>
...
...
common/test/data/toy/html/just_img.html
0 → 100644
View file @
d523167b
<img
src=
"/static/foo_bar.jpg"
/>
\ No newline at end of file
common/test/data/toy/html/just_img.xml
0 → 100644
View file @
d523167b
<html
filename=
"just_img.html"
/>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment