P5-4771 add extra shipping price for framed prints
This commit is contained in:
@@ -545,9 +545,9 @@ class TestPrice(unittest2.TestCase):
|
||||
)
|
||||
|
||||
def test_framed_print_price(self):
|
||||
self.assertEqual(558, framed_print_price(sku="GLOBAL-CFP-12x12", market=sweden))
|
||||
self.assertEqual(598, framed_print_price(sku="GLOBAL-CFP-12x12", market=sweden))
|
||||
self.assertEqual(
|
||||
569,
|
||||
609,
|
||||
framed_print_price(
|
||||
sku="GLOBAL-CFP-12x12", market=sweden, designer=designer_moomin
|
||||
),
|
||||
@@ -555,6 +555,8 @@ class TestPrice(unittest2.TestCase):
|
||||
self.assertEqual(
|
||||
528, framed_print_price(sku="GLOBAL-CFP-12x12", market=denmark)
|
||||
)
|
||||
self.assertEqual(113, framed_print_price(sku="GLOBAL-CFP-28x40", market=russia))
|
||||
self.assertEqual(208, framed_print_price(sku="GLOBAL-CFP-28x40", market=us))
|
||||
|
||||
def test_invalid_framed_print_code(self):
|
||||
with self.assertRaises(ValueError) as context:
|
||||
|
||||
@@ -208,7 +208,7 @@ class TestEndpoints(flask_testing.TestCase):
|
||||
"/prices/framed-print?sku=GLOBAL-CFP-12x12&territory=SE"
|
||||
)
|
||||
self.assert200(response)
|
||||
expected = [{"price": 557.5, "price_excl_vat": 446, "sku": "GLOBAL-CFP-12x12"}]
|
||||
expected = [{"price": 597.5, "price_excl_vat": 478, "sku": "GLOBAL-CFP-12x12"}]
|
||||
self.assertEqual(expected, response.json["data"])
|
||||
|
||||
def test_framed_print_invalid_sku(self):
|
||||
|
||||
Reference in New Issue
Block a user