diff options
-rw-r--r-- | requirements.txt | 31 | ||||
-rw-r--r-- | setup.cfg | 2 | ||||
-rw-r--r-- | test/test_digikey.py | 4 |
3 files changed, 18 insertions, 19 deletions
diff --git a/requirements.txt b/requirements.txt index 6fb9de8..ae31e8c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,27 +1,24 @@ # for development, see setup.py for production dependencies. ansicolors==1.1.8 -cachecontrol==0.12.5 +CacheControl==0.12.5 configclass==0.1.0 +generateDS==2.31.2 +Jinja2==2.10.1 +jupyter==1.0.0 lockfile==0.12.2 -lxml==4.2.3 -jinja2==2.10 -matplotlib==2.2.2 -mpmath==1.0.0 +lxml==4.3.3 +matplotlib==3.0.3 +mpmath==1.1.0 namedlist==1.7 -numpy==1.14.5 -pandas==0.23.3 -parsec==3.3 -Pillow==5.2.0 -pytest==3.6.3 -tox==3.1.2 +numpy==1.16.3 +pandas==0.24.2 +parsec==3.4 +Pillow==6.0.0 pyexcel==0.5.13 pyexcel-ods pyexcel-xls pyexcel-xlsx - -selenium==3.141.0 -generateds==2.30.11 +pytest==4.5.0 requests==2.21.0 - -# for development -jupyter==1.0.0 +selenium==3.141.0 +tox==3.10.0 @@ -8,3 +8,5 @@ python_files = test_*.py *_test.py tests.py +markers = + digikey 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() |