Commit e7849740 by John Eskew Committed by Clinton Blackburn

Remove unneeded list comprehension.

parent e1d8347c
...@@ -265,21 +265,14 @@ class CommonMixedModuleStoreSetup(CourseComparisonTest): ...@@ -265,21 +265,14 @@ class CommonMixedModuleStoreSetup(CourseComparisonTest):
break break
self._initialize_mixed() self._initialize_mixed()
# convert to CourseKeys test_course_key = CourseLocator.from_string(self.MONGO_COURSEID)
self.course_locations = { test_course_key = test_course_key.make_usage_key('course', test_course_key.run).course_key
course_id: CourseLocator.from_string(course_id) self.fake_location = self.store.make_course_key(
for course_id in [self.MONGO_COURSEID] test_course_key.org,
} test_course_key.course,
# and then to the root UsageKey test_course_key.run
self.course_locations = { ).make_usage_key('vertical', 'fake')
course_id: course_key.make_usage_key('course', course_key.run) self._create_course(test_course_key)
for course_id, course_key in self.course_locations.iteritems()
}
mongo_course_key = self.course_locations[self.MONGO_COURSEID].course_key
self.fake_location = self.store.make_course_key(mongo_course_key.org, mongo_course_key.course, mongo_course_key.run).make_usage_key('vertical', 'fake')
self._create_course(self.course_locations[self.MONGO_COURSEID].course_key)
self.assertEquals(default, self.store.get_modulestore_type(self.course.id)) self.assertEquals(default, self.store.get_modulestore_type(self.course.id))
......
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