aboutsummaryrefslogtreecommitdiff
path: root/test/doit/test_doit.py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-07-29 23:22:26 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-07-29 23:22:26 +0200
commit661332c3ce7562b30545ae1773d30a784bcbc0db (patch)
tree76ad1ee053eacc64825e67285c607329cabfdc02 /test/doit/test_doit.py
parentef5f308dd8d94bf40701c5bb979ad0fe45629ae9 (diff)
downloadee-python-661332c3ce7562b30545ae1773d30a784bcbc0db.tar.gz
ee-python-661332c3ce7562b30545ae1773d30a784bcbc0db.tar.bz2
ee-python-661332c3ce7562b30545ae1773d30a784bcbc0db.tar.xz
ee-python-661332c3ce7562b30545ae1773d30a784bcbc0db.zip
o Support for resolving 'mpn' fields from digikey. Creates
'digikey-part-stub', can be used to download the entire part later on.
Diffstat (limited to 'test/doit/test_doit.py')
-rw-r--r--test/doit/test_doit.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/doit/test_doit.py b/test/doit/test_doit.py
index 32eb138..2f6f035 100644
--- a/test/doit/test_doit.py
+++ b/test/doit/test_doit.py
@@ -6,15 +6,16 @@ from pathlib import Path
from ee.ds import DataSetManager
from inspect import Parameter
import ee.kicad.doit
+import ee.digikey.doit
from ee.kicad.doit import *
+from ee.digikey.doit import *
logger = logging.getLogger(__name__)
file_dir = Path(__file__).parent
schematics_dir = file_dir / "schematics"
-
def exec_task(task):
targets = task["targets"]
for a in task["actions"]:
@@ -44,6 +45,9 @@ def test_doit(tmpdir, caplog):
sch=schematics_dir / "schematic-1.sch",
kicad_pcb=schematics_dir / "schematic-1.kicad_pcb",)
+ ee.digikey.doit.doit_config.configure(data_set_manager=dsm)
+
exec_task(task_kicad_sch_to_data_set())
exec_task(task_kicad_pcb_to_data_set())
exec_task(task_kicad_create_component_data_set())
+ exec_task(task_digikey_resolve_schematic_components())