Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
5189f252
Commit
5189f252
authored
7 years ago
by
Gregory Martin
Browse files
Options
Downloads
Patches
Plain Diff
remove dupe
parent
8b3f285d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/certificates/tests/test_signals.py
+0
-32
0 additions, 32 deletions
lms/djangoapps/certificates/tests/test_signals.py
with
0 additions
and
32 deletions
lms/djangoapps/certificates/tests/test_signals.py
+
0
−
32
View file @
5189f252
...
...
@@ -21,38 +21,6 @@ from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from
xmodule.modulestore.tests.factories
import
CourseFactory
class
SelfGeneratedCertsSignalTest
(
ModuleStoreTestCase
):
"""
Tests for enabling/disabling self-generated certificates according to course-pacing.
"""
def
setUp
(
self
):
super
(
SelfGeneratedCertsSignalTest
,
self
).
setUp
()
SelfPacedConfiguration
(
enabled
=
True
).
save
()
self
.
course
=
CourseFactory
.
create
(
self_paced
=
True
)
# Enable the feature
CertificateGenerationConfiguration
.
objects
.
create
(
enabled
=
True
)
def
test_cert_generation_flag_on_pacing_toggle
(
self
):
"""
Verify that signal enables or disables self-generated certificates
according to course-pacing.
"""
#self-generation of cert disables by default
self
.
assertFalse
(
certs_api
.
cert_generation_enabled
(
self
.
course
.
id
))
_listen_for_course_pacing_changed
(
'
store
'
,
self
.
course
.
id
,
self
.
course
.
self_paced
)
#verify that self-generation of cert is enabled for self-paced course
self
.
assertTrue
(
certs_api
.
cert_generation_enabled
(
self
.
course
.
id
))
self
.
course
.
self_paced
=
False
self
.
store
.
update_item
(
self
.
course
,
self
.
user
.
id
)
_listen_for_course_pacing_changed
(
'
store
'
,
self
.
course
.
id
,
self
.
course
.
self_paced
)
# verify that self-generation of cert is disabled for instructor-paced course
self
.
assertFalse
(
certs_api
.
cert_generation_enabled
(
self
.
course
.
id
))
class
SelfGeneratedCertsSignalTest
(
ModuleStoreTestCase
):
"""
Tests for enabling/disabling self-generated certificates according to course-pacing.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment