Skip to content

Commit

Permalink
Version 1.22.14
Browse files Browse the repository at this point in the history
  • Loading branch information
bsongis committed Dec 2, 2018
1 parent fcd2d84 commit a20fceb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions tests/test_nonreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ def test_regularisation_conges_non_pris(self):
self.assert_prec2_equals(facture.total, 685.42 + 179.79)


class EleaTests(GertrudeTestCase):
class Elea1Tests(GertrudeTestCase):
def setUp(self):
GertrudeTestCase.setUp(self)
database.creche.type = TYPE_FAMILIAL
Expand Down Expand Up @@ -1101,7 +1101,7 @@ def test_absences_prevenues(self):
self.add_inscription_timeslot(inscription, 2, 110, 110+9*12) # 9h
inscrit.inscriptions.append(inscription)
self.set_revenus(inscrit, 42783)
cotisation = Cotisation(inscrit, datetime.date(2018, 1, 1), NO_ADDRESS)
cotisation = Cotisation(inscrit, datetime.date(2018, 1, 1), NO_ADDRESS|TRACES)
self.assert_prec2_equals(cotisation.cotisation_mensuelle, 50.05)
facture = Facture(inscrit, 2018, 1, NO_ADDRESS)
self.assert_prec2_equals(facture.total, 45*1.43)
Expand Down Expand Up @@ -1464,7 +1464,7 @@ def test_inscription_finit_sur_mois_sans_facture(self):
self.assert_prec2_equals(cotisation.cotisation_mensuelle, 757.26)


class EleaTests(GertrudeTestCase):
class Elea2Tests(GertrudeTestCase):
def setUp(self):
GertrudeTestCase.setUp(self)
database.creche.type = TYPE_FAMILIAL
Expand Down Expand Up @@ -1500,7 +1500,7 @@ def test_heures_facturees_sur_hospitalisation(self):
inscrit.add_conge(CongeInscrit(inscrit=inscrit, debut="10/05/2018", fin="21/05/2018"))
for day in range(4):
self.add_inscription_timeslot(inscription, day, 10 * 12, 15 * 12)
cotisation = Cotisation(inscrit, datetime.date(2018, 1, 1))
cotisation = Cotisation(inscrit, datetime.date(2018, 1, 1), options=TRACES)
self.assert_prec2_equals(cotisation.cotisation_mensuelle, 88.55)
self.add_activite(inscrit, datetime.date(2018, 3, 1), 100, 160, database.creche.states[HOPITAL])
self.add_activite(inscrit, datetime.date(2018, 3, 5), 100, 160, database.creche.states[HOPITAL])
Expand All @@ -1522,7 +1522,7 @@ def test_heures_facturees_sur_hospitalisation(self):
self.add_journee_presence(inscrit, datetime.date(2018, 3, 29), 8.75*12, 14.75*12)
state = inscrit.GetState(datetime.date(2018, 3, 1))
self.assert_prec2_equals(state.heures_facturees, 0)
facture = Facture(inscrit, 2018, 3)
facture = Facture(inscrit, 2018, 3, options=TRACES)
self.assert_prec2_equals(facture.total, 84.24)
self.assert_prec2_equals(facture.heures_facturees, 73.25)

Expand All @@ -1539,7 +1539,7 @@ def test_heures_facturees_sur_adaptation(self):
inscrit.add_conge(CongeInscrit(inscrit=inscrit, debut="30/03/2018", fin="30/03/2018"))
for day in (0, 2, 4):
self.add_inscription_timeslot(inscription, day, 9 * 12, 18.5 * 12)
cotisation = Cotisation(inscrit, datetime.date(2018, 3, 31))
cotisation = Cotisation(inscrit, datetime.date(2018, 3, 31), options=TRACES)
self.assert_prec2_equals(cotisation.cotisation_mensuelle, 16.8)
self.add_activite(inscrit, datetime.date(2018, 3, 1), 100, 160, database.creche.states[HOPITAL])
self.add_activite(inscrit, datetime.date(2018, 3, 5), 100, 160, database.creche.states[HOPITAL])
Expand All @@ -1557,7 +1557,7 @@ def test_heures_facturees_sur_adaptation(self):
state = inscrit.GetState(datetime.date(2018, 3, 19))
self.assert_prec2_equals(state.heures_facturees, 1.0)
self.assert_prec2_equals(state.heures_realisees, 1.0)
facture = Facture(inscrit, 2018, 3)
facture = Facture(inscrit, 2018, 3, options=TRACES)
self.assert_prec2_equals(facture.total, 3.99)
self.assert_prec2_equals(facture.heures_facturees, 19.0)

Expand All @@ -1583,7 +1583,7 @@ def test_heures_rapport_frequentation(self):
self.check_state(inscrit, datetime.date(2018, 1, 9), MALADE, 10.0, 0.0, 10.0)
self.check_state(inscrit, datetime.date(2018, 1, 10), MALADE, 10.0, 0.0, 10.0)
self.check_state(inscrit, datetime.date(2018, 1, 11), MALADE, 10.0, 0.0, 0.0)
facture = Facture(inscrit, 2018, 1)
facture = Facture(inscrit, 2018, 1, options=TRACES)
self.assert_prec2_equals(facture.total, 500)
self.assert_prec2_equals(facture.heures_contractualisees, 22 * 10)
self.assert_prec2_equals(facture.heures_realisees, (22 - 7) * 10) # 7 jours d'absence
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# You should have received a copy of the GNU General Public License
# along with Gertrude; if not, see <http://www.gnu.org/licenses/>.

VERSION = '1.22.13'
VERSION = '1.22.14'

0 comments on commit a20fceb

Please sign in to comment.