Example #1
0
 def setUp(self):
     password = "******"
     self.user = UserFactory(is_staff=True, password=password)
     self.url = reverse("response-task-list")
     self.view = ResponseTaskList.as_view()
     self.task = ResponseTaskFactory()
     self.client.login(username=self.user.username, password=password)
Example #2
0
 def setUp(self):
     self.url = reverse('response-task-list')
     self.view = ResponseTaskList.as_view()
     self.user = factories.UserFactory(is_staff=True)
     task1 = ResponseTaskFactory()
     task2 = ResponseTaskFactory()
     task3 = ResponseTaskFactory()
     self.tasks = [task1, task2, task3]
Example #3
0
 def setUp(self):
     self.url = reverse("response-task-list")
     self.view = ResponseTaskList.as_view()
     self.user = UserFactory(is_staff=True)
     self.task = ResponseTaskFactory()