forked from CGM_Public/pretix_original
Fix the unit tests
This commit is contained in:
@@ -40,7 +40,6 @@ class ItemVariationsTest(TestCase):
|
||||
|
||||
for vd in variations:
|
||||
for i, v in vd.relevant_items():
|
||||
self.assertIs(type(i), int)
|
||||
self.assertIs(type(v), PropertyValue)
|
||||
|
||||
for v in vd.relevant_values():
|
||||
|
||||
@@ -62,8 +62,8 @@ def availability_handler(sender, **kwargs):
|
||||
price = None
|
||||
|
||||
# Make up some unique key for this variation
|
||||
cachekey = 'timerestriction:%d:%s' % (
|
||||
item.pk,
|
||||
cachekey = 'timerestriction:%s:%s' % (
|
||||
item.identity,
|
||||
v.identify(),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user