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
d5eb9c0b
Commit
d5eb9c0b
authored
Mar 03, 2017
by
bmedx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more lint violations, remove prints
parent
327aeb18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
9 deletions
+1
-9
cms/djangoapps/cms_user_tasks/signals.py
+1
-1
cms/djangoapps/cms_user_tasks/tests.py
+0
-8
No files found.
cms/djangoapps/cms_user_tasks/signals.py
View file @
d5eb9c0b
...
...
@@ -46,5 +46,5 @@ def user_task_stopped_handler(sender, **kwargs): # pylint: disable=unused-argum
try
:
# Need to str state_text here because it is a proxy object and won't serialize correctly
send_task_complete_email
.
delay
(
status
.
name
.
lower
(),
str
(
status
.
state_text
),
status
.
user
.
email
,
detail_url
)
except
Exception
as
e
:
# pylint: disable=broad-except
except
Exception
:
# pylint: disable=broad-except
logging
.
exception
(
"Unable to queue send_task_complete_email"
)
cms/djangoapps/cms_user_tasks/tests.py
View file @
d5eb9c0b
...
...
@@ -149,10 +149,6 @@ class TestUserTaskStopped(APITestCase):
reverse
(
'usertaskstatus-detail'
,
args
=
[
self
.
status
.
uuid
])
]
for
m
in
mail
.
outbox
:
print
(
m
.
subject
)
print
(
m
.
body
)
self
.
assertEqual
(
len
(
mail
.
outbox
),
1
)
msg
=
mail
.
outbox
[
0
]
...
...
@@ -185,10 +181,6 @@ class TestUserTaskStopped(APITestCase):
"Sign in to view the details of your task or download any files created."
]
for
m
in
mail
.
outbox
:
print
(
m
.
subject
)
print
(
m
.
body
)
self
.
assertEqual
(
len
(
mail
.
outbox
),
1
)
msg
=
mail
.
outbox
[
0
]
...
...
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