コード例 #1
0
 def test__save_move_to_approved_without_start_and_end_dates(self):
     with pytest.raises(ValueError):
         absence = AbsenceFactory(start_date=None, end_date=None)
         absence.modify(status=STATUS.approved)
コード例 #2
0
 def test__save_move_to_approved(self):
     try:
         absence = AbsenceFactory()
         absence.modify(status=STATUS.approved)
     except Exception as e:
         pytest.fail(str(e))