Browse Source

Fix payments backend tests

master
Alice 4 years ago
parent
commit
954b6c1af4
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      payments/tests/bitcoin.py
  2. +3
    -3
      payments/tests/paypal.py
  3. +1
    -1
      payments/tests/stripe.py

+ 2
- 2
payments/tests/bitcoin.py View File

@@ -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


+ 3
- 3
payments/tests/paypal.py View File

@@ -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'
)



+ 1
- 1
payments/tests/stripe.py View File

@@ -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