diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_digikey.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_digikey.py b/test/test_digikey.py index e0cc9ff..051c66f 100644 --- a/test/test_digikey.py +++ b/test/test_digikey.py @@ -1,3 +1,4 @@ +import configparser import ee.digikey as dk import io import os.path @@ -8,7 +9,7 @@ from itertools import groupby basedir = os.path.dirname(os.path.abspath(__file__)) digikey = dk.Digikey() -client = dk.DigikeyClient(digikey, on_download=print) +client = dk.DigikeyClient(digikey, event_handler=lambda kind, msg: print("{}:{}".format(kind, msg))) @pytest.mark.digikey |