@@ -254,7 +254,8 @@ def test_get_cart(self):
254254 )
255255 cart = self .client .get_cart ()
256256 self .session_mock ().get .assert_called_with (
257- self .expected_base_url + "/cart" , headers = None
257+ self .expected_base_url + "/cart" ,
258+ headers = PICNIC_HEADERS ,
258259 )
259260 self .assertEqual (cart .type , "ORDER" )
260261 self .assertEqual (cart .total_count , 3 )
@@ -267,6 +268,7 @@ def test_add_product(self):
267268 self .session_mock ().post .assert_called_with (
268269 self .expected_base_url + "/cart/add_product" ,
269270 json = {"product_id" : "p3f2qa" , "count" : 1 },
271+ headers = PICNIC_HEADERS ,
270272 )
271273 self .assertEqual (cart .type , "ORDER" )
272274
@@ -278,6 +280,7 @@ def test_add_multiple_products(self):
278280 self .session_mock ().post .assert_called_with (
279281 self .expected_base_url + "/cart/add_product" ,
280282 json = {"product_id" : "gs4puhf3a" , "count" : 5 },
283+ headers = PICNIC_HEADERS ,
281284 )
282285
283286 def test_remove_product (self ):
@@ -288,6 +291,7 @@ def test_remove_product(self):
288291 self .session_mock ().post .assert_called_with (
289292 self .expected_base_url + "/cart/remove_product" ,
290293 json = {"product_id" : "gs4puhf3a" , "count" : 5 },
294+ headers = PICNIC_HEADERS ,
291295 )
292296
293297 def test_clear_cart (self ):
@@ -296,7 +300,9 @@ def test_clear_cart(self):
296300 )
297301 cart = self .client .clear_cart ()
298302 self .session_mock ().post .assert_called_with (
299- self .expected_base_url + "/cart/clear" , json = None
303+ self .expected_base_url + "/cart/clear" ,
304+ json = None ,
305+ headers = PICNIC_HEADERS ,
300306 )
301307 self .assertEqual (cart .type , "ORDER" )
302308
0 commit comments