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
805bf287
Commit
805bf287
authored
Sep 11, 2016
by
Nimisha Asthagiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable persistent-grades for tests failing query counts, until TNL-5458
parent
c1d4d730
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
lms/djangoapps/ccx/tests/test_field_override_performance.py
+1
-0
lms/djangoapps/courseware/tests/test_views.py
+2
-0
lms/djangoapps/instructor_task/tests/test_tasks_helper.py
+2
-0
No files found.
lms/djangoapps/ccx/tests/test_field_override_performance.py
View file @
805bf287
...
@@ -36,6 +36,7 @@ from openedx.core.djangoapps.content.block_structure.api import get_course_in_ca
...
@@ -36,6 +36,7 @@ from openedx.core.djangoapps.content.block_structure.api import get_course_in_ca
'django.conf.settings.FEATURES'
,
'django.conf.settings.FEATURES'
,
{
{
'ENABLE_XBLOCK_VIEW_ENDPOINT'
:
True
,
'ENABLE_XBLOCK_VIEW_ENDPOINT'
:
True
,
'PERSISTENT_GRADES_ENABLED_FOR_ALL_TESTS'
:
False
# disable persistent grades until TNL-5458 (reduces queries)
}
}
)
)
@ddt.ddt
@ddt.ddt
...
...
lms/djangoapps/courseware/tests/test_views.py
View file @
805bf287
...
@@ -1345,6 +1345,8 @@ class ProgressPageTests(ModuleStoreTestCase):
...
@@ -1345,6 +1345,8 @@ class ProgressPageTests(ModuleStoreTestCase):
)
)
self
.
assertContains
(
resp
,
u"Download Your Certificate"
)
self
.
assertContains
(
resp
,
u"Download Your Certificate"
)
# disable persistent grades until TNL-5458 (reduces query counts)
@patch.dict
(
settings
.
FEATURES
,
{
'PERSISTENT_GRADES_ENABLED_FOR_ALL_TESTS'
:
False
})
@ddt.data
(
@ddt.data
(
*
itertools
.
product
(((
39
,
4
,
True
),
(
39
,
4
,
False
)),
(
True
,
False
))
*
itertools
.
product
(((
39
,
4
,
True
),
(
39
,
4
,
False
)),
(
True
,
False
))
)
)
...
...
lms/djangoapps/instructor_task/tests/test_tasks_helper.py
View file @
805bf287
...
@@ -1641,6 +1641,8 @@ class TestCertificateGeneration(InstructorTaskModuleTestCase):
...
@@ -1641,6 +1641,8 @@ class TestCertificateGeneration(InstructorTaskModuleTestCase):
super
(
TestCertificateGeneration
,
self
)
.
setUp
()
super
(
TestCertificateGeneration
,
self
)
.
setUp
()
self
.
initialize_course
()
self
.
initialize_course
()
# disable persistent grades until TNL-5458 (reduces query counts)
@patch.dict
(
settings
.
FEATURES
,
{
'PERSISTENT_GRADES_ENABLED_FOR_ALL_TESTS'
:
False
})
def
test_certificate_generation_for_students
(
self
):
def
test_certificate_generation_for_students
(
self
):
"""
"""
Verify that certificates generated for all eligible students enrolled in a course.
Verify that certificates generated for all eligible students enrolled in a course.
...
...
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