From 2489edd4b41b41e01f1a6d74f417911d0ac61529 Mon Sep 17 00:00:00 2001 From: Leonid Kostrykin Date: Sun, 6 Oct 2024 21:53:23 +0200 Subject: [PATCH] Fix tests --- django/stats/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/stats/tests.py b/django/stats/tests.py index 1730852..e32d7ed 100644 --- a/django/stats/tests.py +++ b/django/stats/tests.py @@ -353,13 +353,13 @@ def test_peach_price(self, mock__Match__award_badges): mp5 = pmatch.get_participation('76561197962477966') # Test with ADR right below the threshold - mp5.adr = 0.76 * mp4.adr + mp5.adr = 0.668 * mp4.adr mp5.save() models.MatchBadge.award(mp5) self.assertEqual(len(models.MatchBadge.objects.filter(badge_type = 'peach', participation = mp5)), 0) # Test with ADR right above the threshold - mp5.adr = 0.74 * mp4.adr + mp5.adr = 0.666 * mp4.adr mp5.save() for itr in range(2): # Test twice, the badge should be awarded only once with self.subTest(itr = itr):