mirror of
https://github.com/pretix/pretix.git
synced 2026-08-16 11:46:27 +00:00
New implementation of sales channels (#4111)
Co-authored-by: Martin Gross <gross@rami.io>
This commit is contained in:
co-authored by
Martin Gross
parent
95511b0330
commit
4fb5c6bef0
@@ -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