diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-07-19 23:00:13 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-07-19 23:00:13 +0200 |
commit | 067cd0ef6a7e031ea839c7d118da002267df95b3 (patch) | |
tree | 5f1974a427e9bffb5c639a052acaf665c5bca033 /test | |
parent | a30b71772e7eb831e8d87759172a02e79f9673c4 (diff) | |
download | ee-python-067cd0ef6a7e031ea839c7d118da002267df95b3.tar.gz ee-python-067cd0ef6a7e031ea839c7d118da002267df95b3.tar.bz2 ee-python-067cd0ef6a7e031ea839c7d118da002267df95b3.tar.xz ee-python-067cd0ef6a7e031ea839c7d118da002267df95b3.zip |
wip.
Diffstat (limited to 'test')
-rw-r--r-- | test/doit/test_doit.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/doit/test_doit.py b/test/doit/test_doit.py index a379c97..3a0c7ec 100644 --- a/test/doit/test_doit.py +++ b/test/doit/test_doit.py @@ -1,5 +1,10 @@ +import inspect +import logging import os import os.path +from inspect import Parameter + +logger = logging.getLogger(__name__) filedir = os.path.dirname(os.path.abspath(__file__)) schematics_dir = os.path.join(filedir, "schematics") @@ -19,7 +24,12 @@ def exec_task(task): ret = os.system(cmd) assert (ret == 0) else: - a() + parameters = {} + for p in inspect.signature(a).parameters.values(): + if p.kind == Parameter.POSITIONAL_OR_KEYWORD and p.name == "targets": + parameters["targets"] = targets + + a(**parameters) def test_doit(tmpdir, caplog): |