Increase the mongo query count by one because edxnotes has been turned back on, and it loads the course from the modulestore as part of get_html

This commit is contained in:
Calen Pennington
2020-09-25 11:00:34 -04:00
committed by Calen Pennington
parent ef845ebc43
commit a04690d051
2 changed files with 4 additions and 4 deletions

View File

@@ -155,9 +155,9 @@ class RenderXBlockTestMixin(six.with_metaclass(ABCMeta, object)):
return response
@ddt.data(
('vertical_block', ModuleStoreEnum.Type.mongo, 12),
('vertical_block', ModuleStoreEnum.Type.mongo, 13),
('vertical_block', ModuleStoreEnum.Type.split, 6),
('html_block', ModuleStoreEnum.Type.mongo, 13),
('html_block', ModuleStoreEnum.Type.mongo, 14),
('html_block', ModuleStoreEnum.Type.split, 6),
)
@ddt.unpack
@@ -214,7 +214,7 @@ class RenderXBlockTestMixin(six.with_metaclass(ABCMeta, object)):
Helper method used by test_success_enrolled_staff because one test
class using this mixin has an increased number of mongo (only) queries.
"""
return 8
return 9
def test_success_unenrolled_staff(self):
self.setup_course()

View File

@@ -241,4 +241,4 @@ class LtiLaunchTestRender(LtiTestMixin, RenderXBlockTestMixin, ModuleStoreTestCa
# (5)-(8) calls related to the inherited user_partitions field.
# (9) edx_notes descriptor call to get_course
"""
return 8
return 9