This commit is contained in:
Aurélien Plancke 2021-06-09 21:18:56 +02:00
parent d9e48101d7
commit a9a90828e4

View File

@ -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):