@@ -64,7 +64,7 @@ def test_get_courses_for_wiki(self):
6464 """
6565 Test the get_courses_for_wiki method
6666 """
67- store = XMLModuleStore (DATA_DIR , source_dirs = ['toy' , 'simple' ])
67+ store = XMLModuleStore (DATA_DIR , source_dirs = ['toy' , 'simple' ], xblock_mixins = ( XModuleMixin ,) )
6868 for course in store .get_courses ():
6969 course_locations = store .get_courses_for_wiki (course .wiki_slug )
7070 assert len (course_locations ) == 1
@@ -90,7 +90,7 @@ def test_has_course(self):
9090 Test the has_course method
9191 """
9292 check_has_course_method (
93- XMLModuleStore (DATA_DIR , source_dirs = ['toy' , 'simple' ]),
93+ XMLModuleStore (DATA_DIR , source_dirs = ['toy' , 'simple' ], xblock_mixins = ( XModuleMixin ,) ),
9494 CourseKey .from_string ('edX/toy/2012_Fall' ),
9595 locator_key_fields = CourseLocator .KEY_FIELDS
9696 )
@@ -99,7 +99,7 @@ def test_branch_setting(self):
9999 """
100100 Test the branch setting context manager
101101 """
102- store = XMLModuleStore (DATA_DIR , source_dirs = ['toy' ])
102+ store = XMLModuleStore (DATA_DIR , source_dirs = ['toy' ], xblock_mixins = ( XModuleMixin ,) )
103103 course = store .get_courses ()[0 ]
104104
105105 # XML store allows published_only branch setting
@@ -152,7 +152,9 @@ def setUp(self):
152152
153153 @patch ("xmodule.modulestore.xml.glob.glob" , side_effect = glob_tildes_at_end )
154154 def test_tilde_files_ignored (self , _fake_glob ): # noqa: PT019
155- modulestore = XMLModuleStore (DATA_DIR , source_dirs = ['course_ignore' ], load_error_blocks = False )
155+ modulestore = XMLModuleStore (
156+ DATA_DIR , source_dirs = ["course_ignore" ], xblock_mixins = (XModuleMixin ,), load_error_blocks = False
157+ )
156158 about_location = CourseKey .from_string ('edX/course_ignore/2014_Fall' ).make_usage_key (
157159 'about' , 'index' ,
158160 )
0 commit comments