P5-7013 Move wallpaperkit price to api (#38)

This commit is contained in:
Niklas Fondberg
2021-03-24 11:44:35 +01:00
committed by GitHub
parent 464e2f1fa6
commit 2b452a573a
4 changed files with 76 additions and 0 deletions
+6
View File
@@ -491,3 +491,9 @@ class TestPrice(unittest2.TestCase):
framed_print_price(sku="invalid", market=sweden)
self.assertTrue("Invalid SKU number" in str(context.exception))
def test_wallpaper_kit_price(self):
self.assertEqual(143.2, wallpaper_kit_price(market=sweden, rounded=False, inc_vat=False))
self.assertEqual(179.0, wallpaper_kit_price(market=sweden, rounded=False, inc_vat=True))
self.assertEqual(18.0, wallpaper_kit_price(market=us))
self.assertEqual(169.0, wallpaper_kit_price(market=denmark))