comparison donations/tests.py @ 1202:50e511e032db

Get unit tests working again.
author Brian Neal <bgneal@gmail.com>
date Sat, 04 Jan 2025 14:10:38 -0600
parents 9e803323a0d0
children
comparison
equal deleted inserted replaced
1201:fe10aea76cbd 1202:50e511e032db
114 class DonationsManagerTestCase(TestCase): 114 class DonationsManagerTestCase(TestCase):
115 fixtures = ['donations_test'] 115 fixtures = ['donations_test']
116 116
117 def test_monthly_goal_pct(self): 117 def test_monthly_goal_pct(self):
118 118
119 self.assertEqual(settings.DONATIONS_GOAL, Decimal('120.00')) 119 self.assertEqual(settings.DONATIONS_GOAL, Decimal('94.00'))
120 pct = Donation.objects.monthly_goal_pct(year=2012, month=9) 120 pct = Donation.objects.monthly_goal_pct(year=2012, month=9)
121 self.assertEqual(pct, 19) 121 self.assertEqual(pct, 24)
122 122
123 def test_monthly_goal_pct2(self): 123 def test_monthly_goal_pct2(self):
124 124
125 # Ensure we get 0 when there are no records 125 # Ensure we get 0 when there are no records
126 126