def test_mandays(self):
     i = InterventionFactory.create()
     ManDayFactory.create(intervention=i, nb_days=5)
     ManDayFactory.create(intervention=i, nb_days=8)
     self.assertEqual(i.total_manday, 14)  # intervention haz a default manday
示例#2
0
 def test_mandays(self):
     i = InterventionFactory.create()
     ManDayFactory.create(intervention=i, nb_days=5)
     ManDayFactory.create(intervention=i, nb_days=8)
     self.assertEqual(i.total_manday, 14)  # intervention haz a default manday