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
1c1fb1bd
Commit
1c1fb1bd
authored
Dec 19, 2017
by
Gregory Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
4d5f5c3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
lms/djangoapps/discussion/tasks.py
+1
-1
lms/djangoapps/discussion/tests/test_tasks.py
+2
-0
No files found.
lms/djangoapps/discussion/tasks.py
View file @
1c1fb1bd
...
...
@@ -62,7 +62,7 @@ def _track_notification_sent(message, context):
properties
=
{
'site'
:
context
[
'site'
]
.
domain
,
'app_label'
:
'discussion'
,
'name'
:
'responsenotification'
,
'name'
:
'responsenotification'
,
# This is 'Campaign' in GA
'language'
:
message
.
language
,
'uuid'
:
unicode
(
message
.
uuid
),
'send_uuid'
:
unicode
(
message
.
send_uuid
),
...
...
lms/djangoapps/discussion/tests/test_tasks.py
View file @
1c1fb1bd
...
...
@@ -214,6 +214,8 @@ class TaskTestCase(ModuleStoreTestCase):
self
.
assertEqual
(
expected_recipient
,
actual_message
.
recipient
)
self
.
assertEqual
(
self
.
course
.
language
,
actual_message
.
language
)
self
.
_assert_rendered_email
(
actual_message
)
with
patch
(
'analytics.track'
)
as
mock_analytics_track
:
self
.
assertEqual
(
mock_analytics_track
.
call_count
,
1
)
else
:
self
.
assertFalse
(
self
.
mock_ace_send
.
called
)
...
...
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