Add identifier field to questions

This commit is contained in:
Raphael Michel
2018-03-12 13:47:29 +01:00
parent 234e0ee764
commit f21da0cc2b
10 changed files with 157 additions and 9 deletions

View File

@@ -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"}
}
]