Fix payments backend tests

master
Alice 7 years ago
parent 0bb08b5bed
commit 954b6c1af4

@ -38,7 +38,7 @@ class BitcoinBackendTest(TestCase):
self.user = User.objects.create_user('test', 'test_user@example.com', None)
self.p = Payment.objects.create(
user=self.user, time=timedelta(days=30), backend='bitcoin',
user=self.user, time=timedelta(days=30), backend_id='bitcoin',
amount=300)
def test_new(self):
@ -77,7 +77,7 @@ class BitcoinBackendConfirmTest(TestCase):
self.user = User.objects.create_user('test', 'test_user@example.com', None)
self.p = Payment.objects.create(
user=self.user, time=timedelta(days=30), backend='bitcoin',
user=self.user, time=timedelta(days=30), backend_id='bitcoin',
amount=300)
# call new_payment

@ -138,7 +138,7 @@ class PaypalBackendTest(TestCase):
payment = Payment.objects.create(
user=self.user,
time=timedelta(days=30),
backend='paypal',
backend_id='paypal',
amount=300
)
@ -191,7 +191,7 @@ class PaypalBackendTest(TestCase):
payment = Payment.objects.create(
user=self.user,
time=timedelta(days=30),
backend='paypal',
backend_id='paypal',
amount=300
)
@ -230,7 +230,7 @@ class PaypalBackendTest(TestCase):
def test_paypal_subscr(self):
subscription = Subscription.objects.create(
user=self.user,
backend='paypal',
backend_id='paypal',
period='3m'
)

@ -15,7 +15,7 @@ class StripeBackendTest(TestCase):
payment = Payment.objects.create(
user=self.user,
time=timedelta(days=30),
backend='stripe',
backend_id='stripe',
amount=300
)

Loading…
Cancel
Save