Adjust transaction test to have a deadline 6 months in the future

pull/1/head
Raymond Yee 2011-12-29 10:17:11 -05:00
parent 4f17b86878
commit 56787c3c7b
1 changed files with 2 additions and 1 deletions

View File

@ -229,7 +229,7 @@ class TransactionTest(TestCase):
w = Work()
w.save()
c = Campaign(target=D('1000.00'),deadline=datetime.datetime(2012,1,1),work=w)
c = Campaign(target=D('1000.00'),deadline=datetime.datetime.utcnow() + datetime.timedelta(days=180),work=w)
c.save()
t = Transaction()
@ -249,6 +249,7 @@ def suite():
#testcases = [PledgeTest, AuthorizeTest]
testcases = [TransactionTest]
suites = unittest.TestSuite([unittest.TestLoader().loadTestsFromTestCase(testcase) for testcase in testcases])
return suites