From 67497d0f0ea4d89100c14cd36791f3a25ed7170d Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO <ynerant@crans.org> Date: Sat, 19 Jun 2021 00:28:17 +0200 Subject: [PATCH] Fix tests --- billing/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/billing/tests.py b/billing/tests.py index 5aa903c..fa40d42 100644 --- a/billing/tests.py +++ b/billing/tests.py @@ -261,7 +261,7 @@ class TestBilling(TestCase): """ Make a purchase with credit card and simulate comnpay requests """ - payment_method = ComnpayPaymentMethod.objects.first() + payment_method = ComnpayPaymentMethod.objects.create() # Buy one product with credit_card response = self.client.post(reverse('billing:purchase', args=(self.admin.pk,)), data={ 'payment_method': payment_method.pk, -- GitLab