def test_check_proposal_edition_ok(self): past_luy = LearningUnitYearFakerFactory( academic_year=self.past_academic_year, learning_container_year__academic_year=self.past_academic_year, learning_unit=self.luy.learning_unit) ProposalLearningUnitFactory(learning_unit_year=self.luy) self.assertTrue(_check_proposal_edition(past_luy, False))
def test_check_proposal_edition_ok(self): past_luy = LearningUnitYearFakerFactory( academic_year=self.past_academic_year, learning_container_year__academic_year=self.past_academic_year, learning_unit=self.luy.learning_unit) ProposalLearningUnitFactory(learning_unit_year=self.luy) self.assertTrue( _check_proposal_edition( past_luy, create_person_with_permission_and_group(FACULTY_MANAGER_GROUP), False))