Example #1
0
 def make_request(self, method='get', course_id=None, **kwargs):
     course_id = course_id or self.course.id
     request = getattr(RequestFactory(), method)("dummy_url", kwargs)
     request.user = self.student
     request.view_name = "users"
     return views.users(request, course_id=course_id.to_deprecated_string())
Example #2
0
 def make_request(self, method='get', course_id=None, **kwargs):
     course_id = course_id or self.course.id
     request = getattr(RequestFactory(), method)("dummy_url", kwargs)
     request.user = self.student
     request.view_name = "users"
     return views.users(request, course_id=course_id.to_deprecated_string())