P5-4394 add framed-prints price formulas
This commit is contained in:
@@ -201,3 +201,11 @@ class TestEndpoints(flask_testing.TestCase):
|
||||
response = self.client.get("/prices/inquiry/1?width=100&height=100")
|
||||
self.assert200(response)
|
||||
self.assertEqual("poster", response.json["group"])
|
||||
|
||||
def test_framed_print(self):
|
||||
response = self.client.get(
|
||||
"/prices/framed-print?sku=GLOBAL-CFP-12x12&territory=SE"
|
||||
)
|
||||
self.assert200(response)
|
||||
expected = [{"price": 557.5, "price_excl_vat": 446, "sku": "GLOBAL-CFP-12x12"}]
|
||||
self.assertEqual(expected, response.json["data"])
|
||||
|
||||
Reference in New Issue
Block a user