comparison donations/tests.py @ 785:85880b0df024

Tweak donations test since we changed the monthly goal.
author Brian Neal <bgneal@gmail.com>
date Sat, 17 May 2014 12:10:09 -0500
parents 00c14431e911
children 9e803323a0d0
comparison
equal deleted inserted replaced
784:b554aedf45df 785:85880b0df024
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('100.00')) 119 self.assertEqual(settings.DONATIONS_GOAL, Decimal('120.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, 23) 121 self.assertEqual(pct, 19)
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