diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-10-22 09:43:54 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-10-22 09:43:54 +0200 |
commit | 826a0eb82cc786d480888f3a032df95447c133b8 (patch) | |
tree | e8db0701756bf23283316ef04f13f364e37af6c2 /test | |
parent | 0073712b71ea642edc2b67ad64a09cc0f54a137f (diff) | |
download | ee-python-826a0eb82cc786d480888f3a032df95447c133b8.tar.gz ee-python-826a0eb82cc786d480888f3a032df95447c133b8.tar.bz2 ee-python-826a0eb82cc786d480888f3a032df95447c133b8.tar.xz ee-python-826a0eb82cc786d480888f3a032df95447c133b8.zip |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_digikey.py | 8 |
1 files changed, 4 insertions, 4 deletions
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() |