mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Allow to import orders (#1516)
* Allow to import orders * seats, subevents * Plugin support * Add docs * Warn about lack of quota handling * Control interface test * Test skeleton * First tests for the impotr columns * Add tests for all columns * Fix question validation
This commit is contained in:
@@ -2277,7 +2277,9 @@ def test_question_answer_validation_multiple_choice():
|
||||
assert q.clean_answer([str(o1.pk), str(o2.pk)]) == [o1, o2]
|
||||
assert q.clean_answer([str(o1.pk)]) == [o1]
|
||||
assert q.clean_answer([o1.pk]) == [o1]
|
||||
assert q.clean_answer([o1.pk, o3.pk]) == [o1]
|
||||
assert q.clean_answer([o1.pk, o3.pk + 1000]) == [o1]
|
||||
with pytest.raises(ValidationError):
|
||||
assert q.clean_answer([o1.pk, o3.pk]) == [o1]
|
||||
with pytest.raises(ValidationError):
|
||||
assert q.clean_answer([o1.pk, o3.pk + 1000]) == [o1]
|
||||
with pytest.raises(ValidationError):
|
||||
assert q.clean_answer([o1.pk, 'FOO']) == [o1]
|
||||
|
||||
Reference in New Issue
Block a user