forked from CGM_Public/pretix_original
API: add api_meta to order
This commit is contained in:
committed by
GitHub
parent
9e61f7f978
commit
22e2143623
@@ -232,6 +232,9 @@ def test_order_create(token_client, organizer, event, item, quota, question):
|
||||
with scopes_disabled():
|
||||
customer = organizer.customers.create()
|
||||
res['customer'] = customer.identifier
|
||||
res['api_meta'] = {
|
||||
'test': 1
|
||||
}
|
||||
resp = token_client.post(
|
||||
'/api/v1/organizers/{}/events/{}/orders/'.format(
|
||||
organizer.slug, event.slug
|
||||
@@ -251,6 +254,9 @@ def test_order_create(token_client, organizer, event, item, quota, question):
|
||||
assert o.valid_if_pending
|
||||
assert o.expires > now()
|
||||
assert not o.testmode
|
||||
assert o.api_meta == {
|
||||
'test': 1
|
||||
}
|
||||
|
||||
with scopes_disabled():
|
||||
p = o.payments.first()
|
||||
@@ -421,6 +427,7 @@ def test_order_create_simulate(token_client, organizer, event, item, quota, ques
|
||||
],
|
||||
'total': '21.75',
|
||||
'comment': '',
|
||||
'api_meta': {},
|
||||
"custom_followup_at": None,
|
||||
'invoice_address': {
|
||||
'is_business': False,
|
||||
|
||||
Reference in New Issue
Block a user