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
parent
9130aa8b4a
commit
51cc7d4389
|
@ -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())
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue