Remove qualifiers from get_courses
This commit is contained in:
@@ -703,7 +703,7 @@ class SplitMongoModuleStore(BulkWriteMixin, ModuleStoreWriteBase):
|
||||
}
|
||||
return envelope
|
||||
|
||||
def get_courses(self, branch, qualifiers=None, **kwargs):
|
||||
def get_courses(self, branch, **kwargs):
|
||||
'''
|
||||
Returns a list of course descriptors matching any given qualifiers.
|
||||
|
||||
@@ -714,7 +714,6 @@ class SplitMongoModuleStore(BulkWriteMixin, ModuleStoreWriteBase):
|
||||
To get specific versions via guid use get_course.
|
||||
|
||||
:param branch: the branch for which to return courses.
|
||||
:param qualifiers: an optional dict restricting which elements should match
|
||||
'''
|
||||
matching_indexes = self.find_matching_course_indexes(branch)
|
||||
|
||||
|
||||
@@ -608,13 +608,6 @@ class SplitModuleCourseTests(SplitModuleTest):
|
||||
|
||||
_verify_published_course(modulestore().get_courses(branch=BRANCH_NAME_PUBLISHED))
|
||||
|
||||
def test_search_qualifiers(self):
|
||||
# query w/ search criteria
|
||||
courses = modulestore().get_courses(branch=BRANCH_NAME_DRAFT, qualifiers={'org': 'testx'})
|
||||
self.assertEqual(len(courses), 2)
|
||||
self.assertIsNotNone(self.findByIdInResult(courses, "head12345"))
|
||||
self.assertIsNotNone(self.findByIdInResult(courses, "head23456"))
|
||||
|
||||
def test_has_course(self):
|
||||
'''
|
||||
Test the various calling forms for has_course
|
||||
|
||||
Reference in New Issue
Block a user