summaryrefslogtreecommitdiffstats
path: root/tests/test_lingo_cells.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_lingo_cells.py')
-rw-r--r--tests/test_lingo_cells.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_lingo_cells.py b/tests/test_lingo_cells.py
index 8bbc037..c825051 100644
--- a/tests/test_lingo_cells.py
+++ b/tests/test_lingo_cells.py
@@ -10,7 +10,7 @@ from django.utils.http import quote
from combo.data.models import Page
from combo.apps.lingo.models import Regie, BasketItem, Transaction
-from combo.apps.lingo.models import (LingoBasketCell,
+from combo.apps.lingo.models import (LingoBasketCell, PaymentBackend,
LingoRecentTransactionsCell, LingoBasketLinkCell, TipiPaymentFormCell)
pytestmark = pytest.mark.django_db
@@ -26,12 +26,18 @@ def user():
@pytest.fixture
def regie():
try:
+ payment_backend = PaymentBackend.objects.get(slug='test1')
+ except PaymentBackend.DoesNotExist:
+ payment_backend = PaymentBackend.objects.create(
+ label='test1', slug='test1')
+ try:
regie = Regie.objects.get(slug='test')
except Regie.DoesNotExist:
regie = Regie()
regie.label = 'Test'
regie.slug = 'test'
regie.description = 'test'
+ regie.payment_backend = payment_backend
regie.save()
return regie