IMPORTANT: Transactions that are ACTIVE status must also have approved=True to be counted as an effectlvely active Transaction.

Changes in two tests are made to reflect this change.
pull/1/head
Raymond Yee 2012-01-11 15:31:26 -08:00
parent 9130aa8b4a
commit 51cc7d4389
2 changed files with 3 additions and 1 deletions

View File

@ -237,6 +237,7 @@ class CampaignTests(TestCase):
t.amount = D('1234.00')
t.type = PAYMENT_TYPE_AUTHORIZATION
t.status = 'ACTIVE'
t.approved = True
t.campaign = c4
t.save()
self.assertTrue(c4.update_success())

View File

@ -240,7 +240,7 @@ class TransactionTest(TestCase):
pass
def testSimple(self):
"""
create a single transaction with PAYMENT_TYPE_INSTANT / COMPLETED with a $12.34 pledge and see whether the payment
create a single transaction with PAYMENT_TYPE_AUTHORIZATION / ACTIVE with a $12.34 pledge and see whether the payment
manager can query and get the right amount.
"""
@ -253,6 +253,7 @@ class TransactionTest(TestCase):
t.amount = D('12.34')
t.type = PAYMENT_TYPE_AUTHORIZATION
t.status = 'ACTIVE'
t.approved = True
t.campaign = c
t.save()