Skip to content
Snippets Groups Projects
Verified Commit e452b7ac authored by ynerant's avatar ynerant
Browse files

[WEI] Allow a tolerance of 25 %


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 74ab4df9
No related branches found
No related tags found
2 merge requests!174OAuth2, tests WEI,!173[WEI] Correction de l'algorithme et tests unitaires
Pipeline #9024 passed with warnings with stages
in 22 minutes and 11 seconds
...@@ -102,6 +102,6 @@ class TestWEIAlgorithm(TestCase): ...@@ -102,6 +102,6 @@ class TestWEIAlgorithm(TestCase):
max_score = buses[0][1] max_score = buses[0][1]
penalty += (max_score - score) ** 2 penalty += (max_score - score) ** 2
self.assertLessEqual(max_score - score, 20) # Always less than 20 % of tolerance self.assertLessEqual(max_score - score, 25) # Always less than 25 % of tolerance
self.assertLessEqual(penalty / 100, 25) # Tolerance of 5 % self.assertLessEqual(penalty / 100, 25) # Tolerance of 5 %
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment