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
2acdaa5d
Unverified
Commit
2acdaa5d
authored
Nov 08, 2017
by
Brian Mesick
Committed by
GitHub
Nov 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16450 from edx/bmedx/django111_urls_lms_1
LMS urls cleanup for Django 1.11
parents
7e1aa6fa
9d9c199d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
lms/djangoapps/certificates/queue.py
+1
-1
lms/djangoapps/certificates/tests/test_views.py
+1
-1
lms/djangoapps/certificates/tests/test_webview_views.py
+2
-2
lms/urls.py
+0
-0
No files found.
lms/djangoapps/certificates/queue.py
View file @
2acdaa5d
...
...
@@ -510,7 +510,7 @@ class XQueueCertInterface(object):
# for other certificates. Although both tasks use the same queue,
# we can distinguish whether the certificate was an example cert based
# on which end-point XQueue uses once the task completes.
callback_url_path
=
reverse
(
'
certificates.views.
update_example_certificate'
)
callback_url_path
=
reverse
(
'update_example_certificate'
)
try
:
self
.
_send_to_xqueue
(
...
...
lms/djangoapps/certificates/tests/test_views.py
View file @
2acdaa5d
...
...
@@ -59,7 +59,7 @@ class UpdateExampleCertificateViewTest(CacheIsolationTestCase):
description
=
self
.
DESCRIPTION
,
template
=
self
.
TEMPLATE
,
)
self
.
url
=
reverse
(
'
certificates.views.
update_example_certificate'
)
self
.
url
=
reverse
(
'update_example_certificate'
)
# Since rate limit counts are cached, we need to clear
# this before each test.
...
...
lms/djangoapps/certificates/tests/test_webview_views.py
View file @
2acdaa5d
...
...
@@ -936,7 +936,7 @@ class CertificatesViewsTests(CommonCertificatesTestCase):
def
test_request_certificate_without_passing
(
self
):
self
.
cert
.
status
=
CertificateStatuses
.
unavailable
self
.
cert
.
save
()
request_certificate_url
=
reverse
(
'
certificates.views.
request_certificate'
)
request_certificate_url
=
reverse
(
'request_certificate'
)
response
=
self
.
client
.
post
(
request_certificate_url
,
{
'course_id'
:
unicode
(
self
.
course
.
id
)})
self
.
assertEqual
(
response
.
status_code
,
200
)
response_json
=
json
.
loads
(
response
.
content
)
...
...
@@ -947,7 +947,7 @@ class CertificatesViewsTests(CommonCertificatesTestCase):
def
test_request_certificate_after_passing
(
self
):
self
.
cert
.
status
=
CertificateStatuses
.
unavailable
self
.
cert
.
save
()
request_certificate_url
=
reverse
(
'
certificates.views.
request_certificate'
)
request_certificate_url
=
reverse
(
'request_certificate'
)
with
patch
(
'capa.xqueue_interface.XQueueInterface.send_to_queue'
)
as
mock_queue
:
mock_queue
.
return_value
=
(
0
,
"Successfully queued"
)
with
mock_passing_grade
():
...
...
lms/urls.py
View file @
2acdaa5d
This diff is collapsed.
Click to expand it.
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