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
d2670a11
Commit
d2670a11
authored
Jun 13, 2016
by
J. Cliff Dyer
Committed by
Nimisha Asthagiri
Jun 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Certificate Tests: remove EventTrackingTestCase when unneeded
parent
8513e823
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
82 deletions
+99
-82
lms/djangoapps/certificates/tests/test_cert_management.py
+4
-1
lms/djangoapps/certificates/tests/test_webview_views.py
+95
-81
No files found.
lms/djangoapps/certificates/tests/test_cert_management.py
View file @
d2670a11
...
...
@@ -13,7 +13,7 @@ from badges.events.course_complete import get_completion_badge
from
badges.models
import
BadgeAssertion
from
badges.tests.factories
import
BadgeAssertionFactory
,
CourseCompleteImageConfigurationFactory
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
from
xmodule.modulestore.tests.factories
import
CourseFactory
,
check_mongo_calls
from
xmodule.modulestore.tests.factories
import
CourseFactory
,
check_mongo_calls
,
ItemFactory
from
student.tests.factories
import
UserFactory
,
CourseEnrollmentFactory
from
certificates.management.commands
import
resubmit_error_certificates
,
regenerate_user
,
ungenerated_certs
from
certificates.models
import
GeneratedCertificate
,
CertificateStatuses
...
...
@@ -33,6 +33,9 @@ class CertificateManagementTest(ModuleStoreTestCase):
CourseFactory
.
create
()
for
__
in
range
(
3
)
]
for
course
in
self
.
courses
:
chapter
=
ItemFactory
.
create
(
parent_location
=
course
.
location
)
ItemFactory
.
create
(
parent_location
=
chapter
.
location
,
category
=
'sequential'
,
graded
=
True
)
CourseCompleteImageConfigurationFactory
.
create
()
def
_create_cert
(
self
,
course_key
,
user
,
status
,
mode
=
CourseMode
.
HONOR
):
...
...
lms/djangoapps/certificates/tests/test_webview_views.py
View file @
d2670a11
This diff is collapsed.
Click to expand it.
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