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
9a8c5857
Commit
9a8c5857
authored
Jul 02, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change settings to add test course to sandbox whitelist to try to increase diff code coverage
parent
0e0dfd22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
cms/djangoapps/contentstore/tests/test_contentstore.py
+2
-1
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
9a8c5857
...
...
@@ -344,6 +344,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
err_cnt
=
perform_xlint
(
'common/test/data'
,
[
'full'
])
self
.
assertGreater
(
err_cnt
,
0
)
@override_settings
(
COURSES_WITH_UNSAFE_CODE
=
[
'edx/full/.*'
])
def
test_module_preview
(
self
):
'''
Tests the ajax callback to render an XModule
...
...
@@ -359,7 +360,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
self
.
assertEqual
(
resp
.
status_code
,
200
)
self
.
assertIn
(
'Inline content'
,
resp
.
content
)
# also try a custom response
# also try a custom response
which will trigger the 'is this course in whitelist' logic
problem_module_location
=
Location
([
'i4x'
,
'edX'
,
'full'
,
'problem'
,
'H1P1_Energy'
,
None
])
url
=
reverse
(
'preview_component'
,
kwargs
=
{
'location'
:
problem_module_location
.
url
()})
resp
=
self
.
client
.
get
(
url
)
...
...
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