Commit e00a8afc by Calen Pennington

Remove qualifiers from get_courses

parent 3672c9a2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment