mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Add identifier field to questions
This commit is contained in:
@@ -1187,9 +1187,9 @@ def test_quota_availability(token_client, organizer, event, quota, item):
|
||||
|
||||
@pytest.fixture
|
||||
def question(event, item):
|
||||
q = event.questions.create(question="T-Shirt size", type="C")
|
||||
q = event.questions.create(question="T-Shirt size", type="C", identifier="ABC")
|
||||
q.items.add(item)
|
||||
q.options.create(answer="XL")
|
||||
q.options.create(answer="XL", identifier="FOO")
|
||||
return q
|
||||
|
||||
|
||||
@@ -1199,10 +1199,12 @@ TEST_QUESTION_RES = {
|
||||
"required": False,
|
||||
"items": [],
|
||||
"ask_during_checkin": False,
|
||||
"identifier": "ABC",
|
||||
"position": 0,
|
||||
"options": [
|
||||
{
|
||||
"id": 0,
|
||||
"identifier": "FOO",
|
||||
"answer": {"en": "XL"}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user