aboutsummaryrefslogtreecommitdiff
path: root/test/test_digikey.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_digikey.py')
-rw-r--r--test/test_digikey.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/test_digikey.py b/test/test_digikey.py
index 0b79777..6073e25 100644
--- a/test/test_digikey.py
+++ b/test/test_digikey.py
@@ -10,19 +10,19 @@ client = dk.DigikeyClient(digikey)
def test_digikey_1():
- p = client.search("TCR2LF18LM(CTTR-ND")
- assert isinstance(p, dk.DigikeyProduct)
- assert p.part_number == "TCR2LF18LM(CTTR-ND"
- assert len(p.attributes) > 5
- x = p.to_yaml()
- print(type(x))
- print("{}".format(x))
- yaml.dump(x, sys.stdout)
+ p = client.search("TCR2LF18LM(CTTR-ND")
+ assert isinstance(p, dk.DigikeyProduct)
+ assert p.part_number == "TCR2LF18LM(CTTR-ND"
+ assert len(p.attributes) > 5
+ x = p.to_yaml()
+ print(type(x))
+ print("{}".format(x))
+ yaml.dump(x, sys.stdout)
def test_digikey_2():
- response = client.search("TCR2LF")
- [print(p.part_id) for p in response.products]
- assert len(response.products) == 28
- # p = products[0]
- # assert p.part_number == "TCR2LF18LM(CTTR-ND"
+ response = client.search("TCR2LF")
+ [print(p.part_id) for p in response.products]
+ assert len(response.products) == 28
+ # p = products[0]
+ # assert p.part_number == "TCR2LF18LM(CTTR-ND"