PLAT-1885 Stop using deprecated BlockUsageLocator properties
This commit is contained in:
@@ -256,7 +256,7 @@ class InstructorTaskModuleTestCase(InstructorTaskCourseTestCase):
|
||||
"""Get StudentModule object for test course, given the `username` and the problem's `descriptor`."""
|
||||
return StudentModule.objects.get(course_id=self.course.id,
|
||||
student=User.objects.get(username=username),
|
||||
module_type=descriptor.location.category,
|
||||
module_type=descriptor.location.block_type,
|
||||
module_state_key=descriptor.location,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user