Merge branch 'release/2.0.19'

This commit is contained in:
Nathan Chapman 2022-11-25 17:14:16 -07:00
commit bf2a845420

View File

@ -153,7 +153,7 @@ class CartTest(TestCase):
'options': {'Grind': 'Whole Beans'},
'price_total': 13.4,
'quantity': 1,
'variant': 1
'variant': self.variant.pk
}
)
cart.add(
@ -162,7 +162,7 @@ class CartTest(TestCase):
'options': {'Grind': 'Espresso'},
'price_total': 13.4,
'quantity': 1,
'variant': 1
'variant': self.variant.pk
}
)
for item in cart.cart:
@ -181,7 +181,7 @@ class CartTest(TestCase):
'options': {'Grind': 'Whole Beans'},
'price_total': 13.4,
'quantity': 1,
'variant': 1
'variant': self.variant.pk
}
)
@ -198,7 +198,7 @@ class CartTest(TestCase):
'options': {'Grind': 'Whole Beans'},
'price_total': 13.4,
'quantity': 1,
'variant': 1
'variant': self.variant.pk
}
)
self.assertEqual(
@ -213,7 +213,7 @@ class CartTest(TestCase):
'options': {'Grind': 'Espresso'},
'price_total': 40.2,
'quantity': 3,
'variant': 1
'variant': self.variant.pk
}
)
self.assertEqual(
@ -236,7 +236,7 @@ class CartTest(TestCase):
'options': {'Grind': 'Whole Beans'},
'price_total': 40.2,
'quantity': 3,
'variant': 1
'variant': self.variant.pk
}
)
self.assertEqual(
@ -272,7 +272,7 @@ class CartTest(TestCase):
'options': {'Grind': 'Whole Beans'},
'price_total': 40.2,
'quantity': 3,
'variant': 1
'variant': self.variant.pk
}
)
self.assertEqual(len(cart), 3)
@ -292,7 +292,7 @@ class CartTest(TestCase):
'options': {'Grind': 'Whole Beans'},
'price_total': 40.2,
'quantity': 3,
'variant': 1
'variant': self.variant.pk
}
)
self.assertEqual(cart.get_total_weight(), 3)