diff options
Diffstat (limited to 'test/test_digikey.py')
-rw-r--r-- | test/test_digikey.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test_digikey.py b/test/test_digikey.py new file mode 100644 index 0000000..148f56e --- /dev/null +++ b/test/test_digikey.py @@ -0,0 +1,16 @@ +from ee.kicad.bom import * +from ee.kicad.bom.io import read_bom +import ee.kicad.bom_tool as bom_tool +import ee.kicad.bom_tool.predef as predef +import os.path +import pytest + +basedir = os.path.dirname(os.path.abspath(__file__)) + +@pytest.mark.skip(reason="disabled for now") +def test_digikey(): + print("") + bom = read_bom(basedir + '/../demo/kicad/bom/A64-OlinuXino_Rev_C.xml') + settings = bom_tool.Settings(suppliers = [predef.digikey]) + pd = bom_tool.to_panda(bom, settings, predef.digikeyCsvFormat(predef.digikey)) + print(pd.to_csv(index = False)) |