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 vd in variations:
|
||||||
for i, v in vd.relevant_items():
|
for i, v in vd.relevant_items():
|
||||||
self.assertIs(type(i), int)
|
|
||||||
self.assertIs(type(v), PropertyValue)
|
self.assertIs(type(v), PropertyValue)
|
||||||
|
|
||||||
for v in vd.relevant_values():
|
for v in vd.relevant_values():
|
||||||
|
|||||||
@@ -62,8 +62,8 @@ def availability_handler(sender, **kwargs):
|
|||||||
price = None
|
price = None
|
||||||
|
|
||||||
# Make up some unique key for this variation
|
# Make up some unique key for this variation
|
||||||
cachekey = 'timerestriction:%d:%s' % (
|
cachekey = 'timerestriction:%s:%s' % (
|
||||||
item.pk,
|
item.identity,
|
||||||
v.identify(),
|
v.identify(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user