From 8b49551457948e13ab93365051d778358f129019 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 14 May 2019 21:52:00 +0200 Subject: o Updating requirements. Fixing broken test. --- test/test_digikey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_digikey.py b/test/test_digikey.py index 568360e..528ed8e 100644 --- a/test/test_digikey.py +++ b/test/test_digikey.py @@ -5,7 +5,7 @@ from pathlib import Path import pytest import ee.digikey as dk -from ee.money import Money +from ee.money import Money, get_default_context basedir = Path(__file__).parent static_copies = basedir / "digikey" / "static-copies" # type: Path @@ -30,7 +30,7 @@ def test_digikey_1(tmpdir): assert len(p.price_breaks) == 6 assert p.price_breaks[0].quantity == 3000 - assert p.price_breaks[0].price == Money("USD 0.07") + assert p.price_breaks[0].per_piece_price == get_default_context().parse("USD 0.07") repo = dk.DigikeyRepository(digikey, str(tmpdir)) x = io.StringIO() -- cgit v1.2.3