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
cf98cb63
Commit
cf98cb63
authored
Dec 20, 2013
by
Chris Rossi
Committed by
Diana Huang
Jan 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squash warning.
parent
38ad26d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py
+6
-3
No files found.
lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py
View file @
cf98cb63
...
...
@@ -8,6 +8,7 @@ import mock
from
certificates.models
import
GeneratedCertificate
from
django.contrib.auth.models
import
User
from
django.core
import
mail
from
django.utils.timezone
import
utc
from
django.test
import
TestCase
from
student.models
import
UserProfile
...
...
@@ -24,8 +25,9 @@ class MailusersTests(TestCase):
def
setUp
(
self
):
courses
=
{
'TEST1'
:
mock
.
Mock
(
org
=
'TestX'
,
number
=
'1'
,
start
=
datetime
.
datetime
(
2010
,
5
,
12
,
2
,
42
)),
'TEST1'
:
mock
.
Mock
(
org
=
'TestX'
,
number
=
'1'
,
start
=
datetime
.
datetime
(
2010
,
5
,
12
,
2
,
42
,
tzinfo
=
utc
)),
'TEST2'
:
mock
.
Mock
(
org
=
'TestX'
,
number
=
'2'
),
'TEST3'
:
mock
.
Mock
(
org
=
'TestX'
,
number
=
'3'
),
}
...
...
@@ -153,7 +155,8 @@ class MailusersTests(TestCase):
mail
.
outbox
[
1
]
.
to
,
[
'Fred Flintstone <fred@bedrock.gov>'
])
def
test_certificate_url
(
self
):
self
.
cert1
.
created_date
=
datetime
.
datetime
(
2010
,
8
,
15
,
0
,
0
)
self
.
cert1
.
created_date
=
datetime
.
datetime
(
2010
,
8
,
15
,
0
,
0
,
tzinfo
=
utc
)
self
.
cert1
.
save
()
fut
=
mailusers
.
Command
()
.
certificate_url
self
.
assertEqual
(
fut
(
self
.
cert1
),
...
...
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