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
ef4c6988
Commit
ef4c6988
authored
Jul 31, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix literal-used-as-attribute error
parent
9e6a63b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common/djangoapps/student/tests/test_events.py
+1
-1
lms/djangoapps/instructor/tests/test_ecommerce.py
+2
-2
No files found.
common/djangoapps/student/tests/test_events.py
View file @
ef4c6988
...
...
@@ -36,7 +36,7 @@ class TestUserProfileEvents(UserSettingsEventTestMixin, TestCase):
# Verify that we remove the temporary `_changed_fields` property from
# the model after we're done emitting events.
with
self
.
assertRaises
(
AttributeError
):
getattr
(
self
.
profile
,
'_changed_fields'
)
self
.
profile
.
_changed_fields
# pylint: disable=pointless-statement, protected-access
def
test_change_many_fields
(
self
):
"""
...
...
lms/djangoapps/instructor/tests/test_ecommerce.py
View file @
ef4c6988
...
...
@@ -196,8 +196,8 @@ class TestECommerceDashboardViews(SharedModuleStoreTestCase):
data
[
'code'
]
=
'Vs23Ws4j'
response
=
self
.
client
.
post
(
add_coupon_url
,
data
)
self
.
assertTrue
(
"The code ({code}) that you have tried to define is already in use as a registration code"
.
format
(
code
=
data
[
'code'
])
in
response
.
content
)
msg
=
"The code ({code}) that you have tried to define is already in use as a registration code"
self
.
assertIn
(
msg
.
format
(
code
=
data
[
'code'
]),
response
.
content
)
def
test_delete_coupon
(
self
):
"""
...
...
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