Fix the unit tests

This commit is contained in:
Raphael Michel
2015-01-06 16:50:01 +01:00
parent 3ec770a73a
commit 11487cdab3
2 changed files with 2 additions and 3 deletions

View File

@@ -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():

View File

@@ -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(),
) )