From 826a0eb82cc786d480888f3a032df95447c133b8 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 22 Oct 2017 09:43:54 +0200 Subject: digikey.to_pandas(): Make sure that 'Digi-Key', 'MPN' and 'URL' fields always are in the data frame. kicad.to_pandas(): support Schematics objects too. read_schematics(): Support hierarchical labels. --- test/test_digikey.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/test_digikey.py b/test/test_digikey.py index 04b4642..c488ae6 100644 --- a/test/test_digikey.py +++ b/test/test_digikey.py @@ -18,17 +18,17 @@ def test_digikey_1(tmpdir): assert p.mpn == "TCR2LF18,LM(CT" assert len(p.attributes) > 5 + repo = dk.DigikeyRepository(digikey, str(tmpdir)) x = io.StringIO() - p.to_ini().write(x) + p.to_ini(repo._make_configparser()).write(x) print(x.getvalue()) - repo = dk.DigikeyRepository(digikey, str(tmpdir)) repo.save(p) repo = dk.DigikeyRepository(digikey, str(tmpdir)) repo.load_all() ps = repo.find_by_mpn(p.mpn) - assert len(ps) == 1 + assert ps y = io.StringIO() - p.to_ini().write(y) + p.to_ini(repo._make_configparser()).write(y) assert x.getvalue() == y.getvalue() -- cgit v1.2.3