use Decimal for campaign target

pull/1/head
Ed Summers 2011-10-10 15:39:25 -04:00
parent f701cda168
commit 21aa09d183
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import json
import datetime
from decimal import Decimal
from django.test import TestCase
from django.test.client import Client
@ -16,7 +17,7 @@ class ApiTests(TestCase):
work=edition.work,
description='Test Campaign',
deadline=datetime.datetime.now(),
target=1000.0,
target=Decimal('1000.00'),
)
self.user = User.objects.create_user('test', 'test@example.com', 'testpass')
self.client = Client()