diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-12-12 12:02:29 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-12-15 07:30:35 +0100 |
commit | 102614dc8fe2f5aefd0fd92c1b6e48107a9629b0 (patch) | |
tree | 341436f8afc4a29819e59b199eb629a80ffd2df0 /test/test_digikey.py | |
parent | 6cd194703674268b313918b590f2bc483c641efa (diff) | |
download | ee-python-102614dc8fe2f5aefd0fd92c1b6e48107a9629b0.tar.gz ee-python-102614dc8fe2f5aefd0fd92c1b6e48107a9629b0.tar.bz2 ee-python-102614dc8fe2f5aefd0fd92c1b6e48107a9629b0.tar.xz ee-python-102614dc8fe2f5aefd0fd92c1b6e48107a9629b0.zip |
o Adding a kicad-make-pos tool.
Diffstat (limited to 'test/test_digikey.py')
-rw-r--r-- | test/test_digikey.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_digikey.py b/test/test_digikey.py index c488ae6..e0cc9ff 100644 --- a/test/test_digikey.py +++ b/test/test_digikey.py @@ -1,7 +1,8 @@ import ee.digikey as dk +import io import os.path +import pytest import sys -import io from itertools import groupby basedir = os.path.dirname(os.path.abspath(__file__)) @@ -10,6 +11,7 @@ digikey = dk.Digikey() client = dk.DigikeyClient(digikey, on_download=print) +@pytest.mark.digikey def test_digikey_1(tmpdir): res = client.search("TCR2LF18LM(CTTR-ND") assert res.response_type == dk.SearchResponseTypes.SINGLE @@ -32,6 +34,7 @@ def test_digikey_1(tmpdir): assert x.getvalue() == y.getvalue() +@pytest.mark.digikey def test_digikey_2(tmpdir): res = client.search("TCR2LF", page_size=500) assert res.response_type == dk.SearchResponseTypes.MANY |