forked from CGM_Public/pretix_original
Web check-in: Show addons of ticket (Z#23220213) (#5827)
* Web check-in: Show addons of ticket (Z#23220213) * Update src/pretix/plugins/webcheckin/static/pretixplugins/webcheckin/components/app.vue Co-authored-by: luelista <weller@rami.io> --------- Co-authored-by: luelista <weller@rami.io>
This commit is contained in:
@@ -737,6 +737,19 @@ def test_question_expand(token_client, organizer, clist, event, order, question)
|
||||
assert resp.data["position"]["answers"][0]["question"]["question"]["en"] == "Size"
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_addons_expand(token_client, organizer, clist, event, order, question, other_item):
|
||||
with scopes_disabled():
|
||||
p = order.positions.first()
|
||||
question[0].save()
|
||||
p.answers.create(question=question[0], answer="3")
|
||||
|
||||
resp = _redeem(token_client, organizer, clist, p.secret, {"answers": {question[0].pk: ""}}, query="?expand=addons&expand=item")
|
||||
assert resp.status_code == 201
|
||||
assert resp.data["status"] == "ok"
|
||||
assert resp.data["position"]["addons"][0]["item"]["id"] == other_item.pk
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_store_failed(token_client, organizer, clist, event, order):
|
||||
with scopes_disabled():
|
||||
|
||||
Reference in New Issue
Block a user