From 68b2f9bd888f86766fea254d6253f3b1e88cc8a4 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 14 Jul 2018 15:00:49 +0200 Subject: wip --- test/test_digikey.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3