aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-07-14 15:00:49 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-07-14 15:00:49 +0200
commit68b2f9bd888f86766fea254d6253f3b1e88cc8a4 (patch)
tree5103abc40c4e0b309588179d2b0f3720ddfc8e66 /test
parentc5476aba69eded6ccc1343247219ea754e08e3ff (diff)
downloadee-python-68b2f9bd888f86766fea254d6253f3b1e88cc8a4.tar.gz
ee-python-68b2f9bd888f86766fea254d6253f3b1e88cc8a4.tar.bz2
ee-python-68b2f9bd888f86766fea254d6253f3b1e88cc8a4.tar.xz
ee-python-68b2f9bd888f86766fea254d6253f3b1e88cc8a4.zip
wip
Diffstat (limited to 'test')
-rw-r--r--test/test_digikey.py3
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