forked from CGM_Public/pretix_original
New implementation of sales channels (#4111)
Co-authored-by: Martin Gross <gross@rami.io>
This commit is contained in:
@@ -57,11 +57,12 @@ def checkin_list(event):
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def order(item):
|
||||
def order(event, item):
|
||||
"""Returns an order instance"""
|
||||
o = Order.objects.create(event=item.event, status=Order.STATUS_PENDING,
|
||||
expires=now() + datetime.timedelta(hours=1),
|
||||
total=13, code='DUMMY', email='dummy@dummy.test',
|
||||
sales_channel=event.organizer.sales_channels.get(identifier="web"),
|
||||
datetime=now(), locale='en')
|
||||
return o
|
||||
|
||||
|
||||
Reference in New Issue
Block a user