From 29ff11af941379bab13e8888674af754b82bf38c Mon Sep 17 00:00:00 2001 From: Raymond Yee Date: Mon, 12 Mar 2012 15:55:14 -0700 Subject: [PATCH] Missed a datetime import needed for timedelta --- payment/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/payment/tests.py b/payment/tests.py index f1ea3785..323b386e 100644 --- a/payment/tests.py +++ b/payment/tests.py @@ -23,6 +23,7 @@ import logging import os from decimal import Decimal as D from regluit.utils.localdatetime import now +from datetime import timedelta def setup_selenium(): # Set the display window for our xvfb @@ -278,7 +279,7 @@ class TransactionTest(TestCase): w = Work() w.save() - c = Campaign(target=D('1000.00'),deadline=now() + datetime.timedelta(days=180),work=w) + c = Campaign(target=D('1000.00'),deadline=now() + timedelta(days=180),work=w) c.save() t = Transaction()