Exemplo n.º 1
0
 def test_faculty_manager_is_not_eligible_to_add_training(self):
     result = _is_eligible_to_add_education_group_with_category(
         FacultyManagerFactory(),
         random.choice([EducationGroupYearFactory(), None]),
         Categories.TRAINING,
         raise_exception=False)
     self.assertFalse(result)
Exemplo n.º 2
0
 def test_faculty_manager_is_eligible_to_add_groups_in_tree_of_offer_of_its_entity(
         self):
     result = _is_eligible_to_add_education_group_with_category(
         FacultyManagerFactory(),
         EducationGroupYearFactory(),
         Categories.GROUP,
         raise_exception=False)
     self.assertTrue(result)
Exemplo n.º 3
0
 def test_faculty_manager_is_not_eligible_to_add_groups_in_search_page(
         self):
     result = _is_eligible_to_add_education_group_with_category(
         FacultyManagerFactory(),
         None,
         Categories.GROUP,
         raise_exception=False)
     self.assertFalse(result)