diff --git a/payments/tests/bitcoin.py b/payments/tests/bitcoin.py index a26963d..077645a 100644 --- a/payments/tests/bitcoin.py +++ b/payments/tests/bitcoin.py @@ -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 diff --git a/payments/tests/paypal.py b/payments/tests/paypal.py index a171c33..d88807e 100644 --- a/payments/tests/paypal.py +++ b/payments/tests/paypal.py @@ -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' ) diff --git a/payments/tests/stripe.py b/payments/tests/stripe.py index 71b291b..2518add 100644 --- a/payments/tests/stripe.py +++ b/payments/tests/stripe.py @@ -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 )