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