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
4fca1d9d
Commit
4fca1d9d
authored
Jul 11, 2016
by
John Eskew
Committed by
GitHub
Jul 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12893 from edx/jeskew/control_chars_in_string_fields
Update version of XBlock repo.
parents
e07094bf
ea6812e9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
common/lib/xmodule/xmodule/tests/test_video.py
+5
-4
requirements/edx/github.txt
+1
-1
No files found.
common/lib/xmodule/xmodule/tests/test_video.py
View file @
4fca1d9d
...
...
@@ -752,11 +752,12 @@ class VideoExportTestCase(VideoDescriptorTestBase):
def
test_export_to_xml_invalid_characters_in_attributes
(
self
):
"""
Test XML export will raise TypeError by lxml library if contains illegal characters.
Test XML export will *not* raise TypeError by lxml library if contains illegal characters.
The illegal characters in a String field are removed from the string instead.
"""
self
.
descriptor
.
display_name
=
'
\x1
e
'
with
self
.
assertRaises
(
ValueError
):
self
.
descriptor
.
definition_to_xml
(
None
)
self
.
descriptor
.
display_name
=
'
Display
\x1e
Nam
e'
xml
=
self
.
descriptor
.
definition_to_xml
(
None
)
self
.
assertEqual
(
xml
.
get
(
'display_name'
),
'DisplayName'
)
def
test_export_to_xml_unicode_characters
(
self
):
"""
...
...
requirements/edx/github.txt
View file @
4fca1d9d
...
...
@@ -70,7 +70,7 @@ git+https://github.com/edx/lettuce.git@0.2.20.002#egg=lettuce==0.2.20.002
git+https://github.com/edx/pa11ycrawler.git@0.0.4#egg=pa11ycrawler==0.0.4
# Our libraries:
git+https://github.com/edx/XBlock.git@xblock-0.4.1
0#egg=XBlock==0.4.10
git+https://github.com/edx/XBlock.git@xblock-0.4.1
1#egg=XBlock==0.4.11
-e git+https://github.com/edx/codejail.git@6b17c33a89bef0ac510926b1d7fea2748b73aadd#egg=codejail
-e git+https://github.com/edx/event-tracking.git@0.2.1#egg=event-tracking==0.2.1
-e git+https://github.com/edx/django-splash.git@v0.2#egg=django-splash==0.2
...
...
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