test: more Old Mongo removal from tests
Convert more tests from MONGO_AMNESTY to SPLIT modulestores. This is in preparation for just wholesale denying access to Old Mongo, so I either converted tests to split or just deleted some test variants that were Old Mongo specific. (e.g. ddt lines)
This commit is contained in:
@@ -23,6 +23,7 @@ from xblock.core import XBlock
|
||||
|
||||
from xmodule.course_module import Textbook
|
||||
from xmodule.modulestore import ModuleStoreEnum, prefer_xmodules
|
||||
from xmodule.modulestore.mixed import strip_key
|
||||
from xmodule.modulestore.tests.sample_courses import TOY_BLOCK_INFO_TREE, default_block_info_tree
|
||||
from xmodule.tabs import CourseTab
|
||||
|
||||
@@ -324,6 +325,7 @@ class ItemFactory(XModuleFactory):
|
||||
return parent.location
|
||||
|
||||
@classmethod
|
||||
@strip_key
|
||||
def _create(cls, target_class, **kwargs): # lint-amnesty, pylint: disable=arguments-differ, too-many-statements, unused-argument
|
||||
"""
|
||||
Uses ``**kwargs``:
|
||||
@@ -365,6 +367,9 @@ class ItemFactory(XModuleFactory):
|
||||
submission_start = kwargs.pop('submission_start', None)
|
||||
submission_end = kwargs.pop('submission_end', None)
|
||||
|
||||
# Remove this variable passed in by `strip_key`
|
||||
kwargs.pop('field_decorator')
|
||||
|
||||
# Remove the descriptive_tag, it's just for generating display_name,
|
||||
# and doesn't need to be passed into the object constructor
|
||||
kwargs.pop('descriptive_tag')
|
||||
|
||||
Reference in New Issue
Block a user