diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-14 21:52:00 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-14 21:52:00 +0200 |
commit | 8b49551457948e13ab93365051d778358f129019 (patch) | |
tree | 7b0f4eeba564732f1aeb4259b8fcdec6bedc643c /test | |
parent | b9da2d88e21e5edda04e928352b45d203147be26 (diff) | |
download | ee-python-8b49551457948e13ab93365051d778358f129019.tar.gz ee-python-8b49551457948e13ab93365051d778358f129019.tar.bz2 ee-python-8b49551457948e13ab93365051d778358f129019.tar.xz ee-python-8b49551457948e13ab93365051d778358f129019.zip |
o Updating requirements. Fixing broken test.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_digikey.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |