From 3bff060c17996f0bbf2f6d5dcd8f50cf07dfe21b Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Mon, 5 Feb 2018 21:50:40 +0100 Subject: [PATCH] =?UTF-8?q?Activit=C3=A9s=20sans=20horaires=20en=20vacance?= =?UTF-8?q?s=20compt=C3=A9es=20dans=20les=20factures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_nonreg.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/test_nonreg.py b/tests/test_nonreg.py index 5d256910..4a73245c 100644 --- a/tests/test_nonreg.py +++ b/tests/test_nonreg.py @@ -320,6 +320,7 @@ def setUp(self): database.creche.repartition = REPARTITION_MENSUALISATION_12MOIS database.creche.facturation_periode_adaptation = PERIODE_ADAPTATION_HORAIRES_REELS database.creche.conges_inscription = GESTION_CONGES_INSCRIPTION_MENSUALISES_AVEC_POSSIBILITE_DE_SUPPLEMENT + database.creche.arrondi_mensualisation_euros = ARRONDI_EURO_PLUS_PROCHE database.creche.tarification_activites = 1 database.creche.tarifs_horaires.append(TarifHoraire(database.creche, [["", 6.25, TARIF_HORAIRE_UNITE_EUROS_PAR_HEURE]])) database.creche.bureaux.append(Bureau(debut=datetime.date(2010, 1, 1))) @@ -346,13 +347,13 @@ def test_123_apetitspas(self): cotisation = Cotisation(inscrit, datetime.date(2014, 10, 1), NO_ADDRESS) self.assert_prec2_equals(cotisation.cotisation_mensuelle, 0) cotisation = Cotisation(inscrit, datetime.date(2014, 10, 7), NO_ADDRESS) - self.assert_prec2_equals(cotisation.cotisation_mensuelle, 1054.69) + self.assert_prec2_equals(cotisation.cotisation_mensuelle, 1055.00) facture = Facture(inscrit, 2014, 9, NO_ADDRESS) - self.assert_prec2_equals(facture.total, 268.75) + self.assert_prec2_equals(facture.total, 269.00) facture = Facture(inscrit, 2014, 10, NO_ADDRESS) - self.assert_prec2_equals(facture.total, 1075.55) + self.assert_prec2_equals(facture.total, 1076.00) facture = Facture(inscrit, 2014, 11, NO_ADDRESS) - self.assert_prec2_equals(facture.total, 1054.69) + self.assert_prec2_equals(facture.total, 1055.00) def test_activites_pendant_conges(self): inscrit = self.add_inscrit() @@ -376,10 +377,10 @@ def test_activites_pendant_conges(self): inscrit.inscriptions.append(inscription) cotisation = Cotisation(inscrit, datetime.date(2018, 1, 1), NO_ADDRESS) self.assert_prec2_equals(cotisation.montant_heure_garde, 6.25) - self.assert_prec2_equals(cotisation.cotisation_mensuelle, 937.50) + self.assert_prec2_equals(cotisation.cotisation_mensuelle, 938.00) facture = Facture(inscrit, 2018, 1, NO_ADDRESS) self.assert_prec2_equals(facture.supplement_activites, 81.00) - self.assert_prec2_equals(facture.total, 1121.63) + self.assert_prec2_equals(facture.total, 1122.13) class MarmousetsTests(GertrudeTestCase):