Example #1
0
 def setUp(self):
     super(IgnoredFilesTestCase, self).setUp()  # lint-amnesty, pylint: disable=super-with-arguments
     for dictionary in self.dict_list:
         self.addCleanup(remove_temp_files_from_list,
                         list(dictionary.keys()),
                         self.course_dir / "static")
         add_temp_files_from_dict(dictionary, self.course_dir / "static")
 def setUp(self):
     super(IgnoredFilesTestCase, self).setUp()
     for dictionary in self.dict_list:
         self.addCleanup(remove_temp_files_from_list,
                         list(dictionary.keys()),
                         self.course_dir / "static")
         add_temp_files_from_dict(dictionary, self.course_dir / "static")
 def setUp(self):
     """ Common setup. """
     super(ExportAllCourses, self).setUp()
     self.content_store = contentstore()
     # pylint: disable=protected-access
     self.module_store = modulestore()._get_modulestore_by_type(ModuleStoreEnum.Type.mongo)
     self.addCleanup(remove_temp_files_from_list, DOT_FILES_DICT.keys(), self.course_dir / "static")
     add_temp_files_from_dict(DOT_FILES_DICT, self.course_dir / "static")
 def setUp(self):
     """ Common setup. """
     super(ExportAllCourses, self).setUp()
     self.content_store = contentstore()
     # pylint: disable=protected-access
     self.module_store = modulestore()._get_modulestore_by_type(ModuleStoreEnum.Type.mongo)
     self.addCleanup(remove_temp_files_from_list, list(DOT_FILES_DICT.keys()), self.course_dir / "static")
     add_temp_files_from_dict(DOT_FILES_DICT, self.course_dir / "static")
Example #5
0
 def setUp(self):
     super(TestModuleStoreIgnore, self).setUp()
     self.addCleanup(remove_temp_files_from_list,
                     list(TILDA_FILES_DICT.keys()),
                     self.course_dir / "static")
     add_temp_files_from_dict(TILDA_FILES_DICT, self.course_dir / "static")
Example #6
0
 def setUp(self):
     super(TestModuleStoreIgnore, self).setUp()
     self.addCleanup(remove_temp_files_from_list, TILDA_FILES_DICT.keys(), self.course_dir / "static")
     add_temp_files_from_dict(TILDA_FILES_DICT, self.course_dir / "static")
Example #7
0
 def setUp(self):
     super(TestModuleStoreIgnore, self).setUp()  # lint-amnesty, pylint: disable=super-with-arguments
     self.addCleanup(remove_temp_files_from_list,
                     list(TILDA_FILES_DICT.keys()),
                     self.course_dir / "static")
     add_temp_files_from_dict(TILDA_FILES_DICT, self.course_dir / "static")
 def setUp(self):
     super(IgnoredFilesTestCase, self).setUp()
     for dictionary in self.dict_list:
         self.addCleanup(remove_temp_files_from_list, dictionary.keys(), self.course_dir / "static")
         add_temp_files_from_dict(dictionary, self.course_dir / "static")