Exemple #1
0
 def setUp(self):
     super().setUp()
     self.instance = FactoryFloor.PersonFactory()
     self.test_url = reverse_lazy('ihub:person_edit', args=[self.instance.pk, ])
     self.test_url1 = reverse_lazy('ihub:person_edit_pop', args=[self.instance.pk, ])
     self.expected_template = 'ihub/form.html'
     self.expected_template1 = 'shared_models/generic_popout_form.html'
     self.user = self.get_and_login_user(in_group="ihub_edit")
Exemple #2
0
 def setUp(self):
     super().setUp()
     self.instance = FactoryFloor.PersonFactory()
     self.test_url = reverse_lazy('ihub:person_detail',
                                  args=[
                                      self.instance.pk,
                                  ])
     self.expected_template = 'ihub/person_detail.html'
     self.user = self.get_and_login_user()
Exemple #3
0
 def setUp(self):
     super().setUp()
     self.instance = FactoryFloor.PersonFactory()
     self.test_url = reverse_lazy('ihub:person_delete',
                                  args=[
                                      self.instance.pk,
                                  ])
     self.expected_template = 'ihub/confirm_delete.html'
     self.user = self.get_and_login_user(in_group="ihub_admin")
Exemple #4
0
 def setUp(self):
     super().setUp()
     self.instance = FactoryFloor.PersonFactory()
     self.test_url = reverse_lazy('ihub:person_list')
     self.expected_template = 'ihub/list.html'
     self.user = self.get_and_login_user()
Exemple #5
0
 def setUp(self):
     super().setUp()
     self.instance = i_factory.PersonFactory()
     self.test_url = reverse_lazy('maret:person_detail', args=[self.instance.pk, ])
     self.expected_template = 'maret/person_detail.html'
     self.user = self.get_and_login_user(in_group="maret_user")