aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_digikey.py8
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()