aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_digikey.py4
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()