mirror of
https://github.com/pretix/pretix.git
synced 2026-10-02 19:24:42 +00:00
InvoiceShredder: Fix shredding of new fields (#6577)
* InvoiceShredder: Fix shredding of new fields * Update src/pretix/base/migrations/0311_fix_unshredded_invoices.py
This commit is contained in:
@@ -342,8 +342,11 @@ def test_invoice_shredder(event, order):
|
||||
s.shred_data()
|
||||
inv.refresh_from_db()
|
||||
|
||||
assert "Acme" not in inv.invoice_to
|
||||
assert "icket" not in inv.lines.first().description
|
||||
assert inv.invoice_to == "█"
|
||||
assert inv.invoice_to_company == "█"
|
||||
l = inv.lines.first()
|
||||
assert l.description == "█"
|
||||
assert l.attendee_name == "█"
|
||||
assert not inv.file
|
||||
assert not os.path.exists(fname)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user