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
96420f30
Commit
96420f30
authored
Jul 10, 2014
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanups
Remove unnecessary check. Fix merge conflict
parent
97331d4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
22 deletions
+1
-22
cms/djangoapps/contentstore/tests/utils.py
+0
-17
common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py
+1
-5
No files found.
cms/djangoapps/contentstore/tests/utils.py
View file @
96420f30
...
...
@@ -293,7 +293,6 @@ class CourseTestCase(ModuleStoreTestCase):
for
descriptor
in
items
:
resp
=
self
.
client
.
get_html
(
get_url
(
'unit_handler'
,
descriptor
.
location
))
self
.
assertEqual
(
resp
.
status_code
,
200
)
test_no_locations
(
self
,
resp
)
def
assertAssetsEqual
(
self
,
asset_key
,
course1_id
,
course2_id
):
"""Verifies the asset of the given key has the same attributes in both given courses."""
...
...
@@ -310,22 +309,6 @@ class CourseTestCase(ModuleStoreTestCase):
self
.
assertEqual
(
value
,
course2_asset_attrs
[
key
])
def
test_no_locations
(
test
,
resp
,
status_code
=
200
,
html
=
True
):
"""
Verifies that "i4x", which appears in old locations, but not
new locators, does not appear in the HTML response output.
Used to verify that database refactoring is complete.
"""
test
.
assertNotContains
(
resp
,
'i4x'
,
status_code
=
status_code
,
html
=
html
)
if
html
:
# For HTML pages, it is nice to call the method with html=True because
# it checks that the HTML properly parses. However, it won't find i4x usages
# in JavaScript blocks.
content
=
resp
.
content
hits
=
len
(
re
.
findall
(
r"(?<!jump_to/)i4x://"
,
content
))
test
.
assertEqual
(
hits
,
0
,
"i4x found outside of LMS jump-to links"
)
def
get_url
(
handler_name
,
key_value
,
key_name
=
'usage_key_string'
,
kwargs
=
None
):
"""
Helper function for getting HTML for a page in Studio and checking that it does not error.
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py
View file @
96420f30
...
...
@@ -363,11 +363,7 @@ class TestMixedModuleStore(LocMapperSetupSansDjango):
xml_store
=
self
.
store
.
_get_modulestore_by_type
(
ModuleStoreEnum
.
Type
.
xml
)
# the important thing is not which exception it raises but that it raises an exception
with
self
.
assertRaises
(
AttributeError
):
<<<<<<<
HEAD
xml_store
.
create_course
(
"org"
,
"course/run"
,
self
.
user_id
)
=======
xml_store
.
create_course
(
"org"
,
"course"
,
"run"
,
999
)
>>>>>>>
Fix
up
the
signature
to
use
course
and
run
instead
of
just
offering
xml_store
.
create_course
(
"org"
,
"course"
,
"run"
,
self
.
user_id
)
@ddt.data
(
'draft'
,
'split'
)
def
test_get_course
(
self
,
default_ms
):
...
...
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