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
b674aabb
Commit
b674aabb
authored
Aug 21, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove DEBUG flag from cart addition urls--causing test failure
parent
5b25940c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
lms/djangoapps/shoppingcart/tests/test_views.py
+1
-1
lms/djangoapps/shoppingcart/urls.py
+1
-5
No files found.
lms/djangoapps/shoppingcart/tests/test_views.py
View file @
b674aabb
...
@@ -34,7 +34,7 @@ render_mock = Mock(side_effect=mock_render_to_response)
...
@@ -34,7 +34,7 @@ render_mock = Mock(side_effect=mock_render_to_response)
postpay_mock
=
Mock
()
postpay_mock
=
Mock
()
@override_settings
(
MODULESTORE
=
TEST_DATA_MONGO_MODULESTORE
,
DEBUG
=
True
)
@override_settings
(
MODULESTORE
=
TEST_DATA_MONGO_MODULESTORE
)
class
ShoppingCartViewsTests
(
ModuleStoreTestCase
):
class
ShoppingCartViewsTests
(
ModuleStoreTestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
user
=
UserFactory
.
create
()
self
.
user
=
UserFactory
.
create
()
...
...
lms/djangoapps/shoppingcart/urls.py
View file @
b674aabb
...
@@ -11,12 +11,8 @@ if settings.MITX_FEATURES['ENABLE_SHOPPING_CART']:
...
@@ -11,12 +11,8 @@ if settings.MITX_FEATURES['ENABLE_SHOPPING_CART']:
url
(
r'^$'
,
'show_cart'
),
url
(
r'^$'
,
'show_cart'
),
url
(
r'^clear/$'
,
'clear_cart'
),
url
(
r'^clear/$'
,
'clear_cart'
),
url
(
r'^remove_item/$'
,
'remove_item'
),
url
(
r'^remove_item/$'
,
'remove_item'
),
)
if
settings
.
DEBUG
:
urlpatterns
+=
patterns
(
'shoppingcart.views'
,
url
(
r'^add/course/(?P<course_id>[^/]+/[^/]+/[^/]+)/$'
,
'add_course_to_cart'
,
name
=
'add_course_to_cart'
),
url
(
r'^add/course/(?P<course_id>[^/]+/[^/]+/[^/]+)/$'
,
'add_course_to_cart'
,
name
=
'add_course_to_cart'
),
url
(
r'^register_verified_course/course/(?P<course_id>[^/]+/[^/]+/[^/]+)/$'
,
url
(
r'^register_verified_course/course/(?P<course_id>[^/]+/[^/]+/[^/]+)/$'
,
'register_for_verified_cert'
),
'register_for_verified_cert'
),
)
)
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