From a9a90828e46e62958876868b9226741540e4ad12 Mon Sep 17 00:00:00 2001 From: aurelien Date: Wed, 9 Jun 2021 21:18:56 +0200 Subject: [PATCH] commit --- 06_test_moyenne.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/06_test_moyenne.py b/06_test_moyenne.py index ccb85df..65fb96e 100644 --- a/06_test_moyenne.py +++ b/06_test_moyenne.py @@ -310,9 +310,10 @@ class PythonOrgSearch(unittest.TestCase): if "UE11" in ueListText: affichageMoyenne = False elif numeroEtu == 1: - moyEtudiant2 = float(MOY_UE1) * COEFF_UE1 + ( - float(MOY_UE2) - float(moyenneBonusEtudiant2) - ) * COEFF_UE2 / (COEFF_UE1 + COEFF_UE2) + moyEtudiant2 = ( + float(MOY_UE1) * COEFF_UE1 + + (float(MOY_UE2) - float(moyenneBonusEtudiant2)) * COEFF_UE2 + ) / (COEFF_UE1 + COEFF_UE2) if moyEtudiant2 != float( driver.find_element_by_class_name("rcp_moy").text ): @@ -320,8 +321,6 @@ class PythonOrgSearch(unittest.TestCase): if "UE11" not in ueListText: affichageMoyenne = False numeroEtu = numeroEtu + 1 - print(moyenneBonne) - print(affichageMoyenne) self.assertTrue(moyenneBonne and affichageMoyenne) # def test_070_note_attente(self):