mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
get_all_variations: return an empty dict in the list if there are no
properties
This commit is contained in:
@@ -33,7 +33,8 @@ class ItemVariationsTest(TestCase):
|
||||
|
||||
# No properties available
|
||||
v = i.get_all_variations()
|
||||
self.assertEqual(len(v), 0)
|
||||
self.assertEqual(len(v), 1)
|
||||
self.assertEqual(v[0], {})
|
||||
|
||||
# One property, no variations
|
||||
p = Property.objects.get(event=e, name='Size')
|
||||
|
||||
Reference in New Issue
Block a user