Commit 9cc43f1d by Ned Batchelder

Simplify this test setup.

parent 6c609afd
...@@ -814,11 +814,7 @@ class TestCourseGrader(LoginEnrollmentTestCase): ...@@ -814,11 +814,7 @@ class TestCourseGrader(LoginEnrollmentTestCase):
xmodule.modulestore.django._MODULESTORES = {} xmodule.modulestore.django._MODULESTORES = {}
courses = modulestore().get_courses() courses = modulestore().get_courses()
def find_course(course_id): self.graded_course = modulestore().get_course("edX/graded/2012_Fall")
"""Assumes the course is present"""
return [c for c in courses if c.id == course_id][0]
self.graded_course = find_course("edX/graded/2012_Fall")
# create a test student # create a test student
self.student = 'view@test.com' self.student = 'view@test.com'
......
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