mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Expose help texts on questions' API (#1534)
* Expose help texts on questions' API * Update questions docs to show help_text * Update questions.rst Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
This commit is contained in:
committed by
Raphael Michel
parent
eb7e938af6
commit
19873e2a09
@@ -1740,7 +1740,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", identifier="ABC")
|
||||
q = event.questions.create(
|
||||
question="T-Shirt size", type="C", identifier="ABC", help_text="This is an example question"
|
||||
)
|
||||
q.items.add(item)
|
||||
q.options.create(answer="XL", identifier="LVETRWVU")
|
||||
return q
|
||||
@@ -1759,6 +1761,7 @@ TEST_QUESTION_RES = {
|
||||
"dependency_question": None,
|
||||
"dependency_value": None,
|
||||
"dependency_values": [],
|
||||
"help_text": {"en": "This is an example question"},
|
||||
"options": [
|
||||
{
|
||||
"id": 0,
|
||||
|
||||
Reference in New Issue
Block a user