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
f2862965
Commit
f2862965
authored
Dec 20, 2013
by
Chris Rossi
Committed by
Diana Huang
Jan 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pep8
parent
c5c9554d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lms/djangoapps/linkedin/management/commands/linkedin_mailusers.py
+1
-1
lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py
+3
-1
No files found.
lms/djangoapps/linkedin/management/commands/linkedin_mailusers.py
View file @
f2862965
...
...
@@ -94,7 +94,7 @@ class Command(BaseCommand):
(
'_mSplash'
,
'1'
),
(
'trk'
,
tracking_code
),
(
'startTask'
,
'CERTIFICATION_NAME'
),
(
'force'
,
'true'
)
,
]
(
'force'
,
'true'
)]
return
'http://www.linkedin.com/profile/guided?'
+
urllib
.
urlencode
(
query
)
def
send_grandfather_email
(
self
,
user
,
certificates
):
...
...
lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py
View file @
f2862965
...
...
@@ -31,6 +31,7 @@ class MailusersTests(TestCase):
'TEST2'
:
mock
.
Mock
(
org
=
'TestX'
,
number
=
'2'
),
'TEST3'
:
mock
.
Mock
(
org
=
'TestX'
,
number
=
'3'
),
}
def
get_course_by_id
(
id
):
return
courses
.
get
(
id
)
patcher
=
mock
.
patch
(
MODULE
+
'get_course_by_id'
,
get_course_by_id
)
...
...
@@ -159,7 +160,8 @@ class MailusersTests(TestCase):
2010
,
8
,
15
,
0
,
0
,
tzinfo
=
utc
)
self
.
cert1
.
save
()
fut
=
mailusers
.
Command
()
.
certificate_url
self
.
assertEqual
(
fut
(
self
.
cert1
),
self
.
assertEqual
(
fut
(
self
.
cert1
),
'http://www.linkedin.com/profile/guided?'
'pfCertificationName=TestX
%2
FIntro101&pfAuthorityName=edX&'
'pfAuthorityId=0000000&'
...
...
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