From fc247040fe060d94fc2f9953ee9e085daef87bce Mon Sep 17 00:00:00 2001 From: Nathan Chapman Date: Fri, 25 Nov 2022 17:13:50 -0700 Subject: [PATCH] Fix tests --- src/storefront/tests/test_cart.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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)