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
37b1a2f7
Commit
37b1a2f7
authored
May 12, 2014
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove calls to loc_mapper
parent
a4df0e15
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
cms/djangoapps/contentstore/views/tests/test_container.py
+2
-3
cms/djangoapps/contentstore/views/tests/test_tabs.py
+1
-2
common/djangoapps/external_auth/tests/test_ssl.py
+1
-4
No files found.
cms/djangoapps/contentstore/views/tests/test_container.py
View file @
37b1a2f7
...
...
@@ -7,7 +7,7 @@ import json
from
contentstore.tests.utils
import
CourseTestCase
from
contentstore.utils
import
compute_publish_state
,
PublishState
from
contentstore.views.helpers
import
xblock_studio_url
from
xmodule.modulestore.django
import
loc_mapper
,
modulestore
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore.tests.factories
import
ItemFactory
...
...
@@ -128,9 +128,8 @@ class ContainerViewTestCase(CourseTestCase):
"""
Verify that the specified xblock has the expected HTML elements for container preview
"""
locator
=
loc_mapper
()
.
translate_location
(
xblock
.
location
,
published
=
False
)
publish_state
=
compute_publish_state
(
xblock
)
preview_url
=
'/xblock/{
locator}/container_preview'
.
format
(
locator
=
locator
)
preview_url
=
'/xblock/{
}/container_preview'
.
format
(
xblock
.
location
)
resp
=
self
.
client
.
get
(
preview_url
,
HTTP_ACCEPT
=
'application/json'
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
...
...
cms/djangoapps/contentstore/views/tests/test_tabs.py
View file @
37b1a2f7
...
...
@@ -178,8 +178,7 @@ class TabsPageTests(CourseTestCase):
"""
Verify that the static tab renders itself with the correct HTML
"""
locator
=
loc_mapper
()
.
translate_location
(
self
.
test_tab
.
location
)
preview_url
=
'/xblock/{locator}/student_view'
.
format
(
locator
=
unicode
(
locator
))
preview_url
=
'/xblock/{}/student_view'
.
format
(
self
.
test_tab
.
location
)
resp
=
self
.
client
.
get
(
preview_url
,
HTTP_ACCEPT
=
'application/json'
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
...
...
common/djangoapps/external_auth/tests/test_ssl.py
View file @
37b1a2f7
...
...
@@ -382,10 +382,7 @@ class SSLClientTest(ModuleStoreTestCase):
CourseEnrollment
.
enroll
(
user
,
course
.
id
)
CourseStaffRole
(
course
.
id
)
.
add_users
(
user
)
new_location
=
loc_mapper
()
.
translate_location
(
course
.
location
,
True
,
True
)
course_private_url
=
new_location
.
url_reverse
(
'course/'
,
''
)
course_private_url
=
course
.
location
.
url_reverse
(
'course/'
,
''
)
self
.
assertFalse
(
SESSION_KEY
in
self
.
client
.
session
)
response
=
self
.
client
.
get
(
...
...
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