Do not use deepcopy on models

This commit is contained in:
Raphael Michel
2018-08-07 15:43:57 +02:00
parent 0c0172a0b6
commit c702814203
7 changed files with 31 additions and 13 deletions

View File

@@ -394,6 +394,12 @@ class VoucherFormTest(SoupTest):
'itemvar': '%d' % self.shirt.pk,
})
def test_create_bulk_many(self):
self._create_bulk_vouchers({
'codes': 'ABCDE\nDEFGH\nIJKLM\nNOPQR\nSTUVW\nXYZ',
'itemvar': '%d' % self.ticket.pk,
})
def test_create_blocking_bulk_quota_full(self):
self.quota_tickets.size = 0
self.quota_tickets.save()