diff --git a/src/storefront/tests/test_cart.py b/src/storefront/tests/test_cart.py index daad13b..5b8c94d 100644 --- a/src/storefront/tests/test_cart.py +++ b/src/storefront/tests/test_cart.py @@ -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)