Order import: Allow to create multiple multi-ticket orders (#5304)

* Order import: Allow to create multiple multi-ticket orders

* Update src/pretix/base/modelimport_orders.py

* Fix failing test
This commit is contained in:
Raphael Michel
2025-07-14 10:03:16 +02:00
committed by GitHub
parent 14d6013292
commit 04e92e9f2f
6 changed files with 208 additions and 12 deletions

View File

@@ -59,9 +59,10 @@ Anke,Müller,anke@example.net
r = client.post('/control/event/dummy/dummy/orders/import/', {
'file': file
}, follow=True)
print(r.content)
doc = BeautifulSoup(r.content, "lxml")
assert doc.select("select[name=orders]")
assert doc.select("select[name=status]")
assert doc.select("input[name=orders]")
assert doc.select("input[name=status]")
assert doc.select("select[name=attendee_email]")
assert b"Dieter" in r.content
assert b"daniel@example.org" in r.content