diff --git a/q2cli/builtin/tools.py b/q2cli/builtin/tools.py index 908406c1..7d04187c 100644 --- a/q2cli/builtin/tools.py +++ b/q2cli/builtin/tools.py @@ -997,7 +997,7 @@ def provenance_replay( suppress_header: bool = False, verbose: bool = True, dump_recorded_metadata: bool = True, - metadata_out_fp: str = '' + metadata_out_dir: str = '' ): """ Replay provenance from a QIIME 2 Artifact filepath to a written executable @@ -1026,7 +1026,7 @@ def provenance_replay( suppress_header=suppress_header, verbose=verbose, dump_recorded_metadata=dump_recorded_metadata, - md_out_fp=metadata_out_fp + md_out_dir=metadata_out_dir ) filename = os.path.realpath(out_fp) click.echo(f'{usage_driver} replay script written to {filename}') diff --git a/q2cli/tests/test_core.py b/q2cli/tests/test_core.py index d46765c2..1d0f66c5 100644 --- a/q2cli/tests/test_core.py +++ b/q2cli/tests/test_core.py @@ -260,7 +260,8 @@ def test_dump_recorded_md_file_to_custom_dir(self): with tempfile.TemporaryDirectory() as tempdir: cfg = ReplayConfig(use=ReplayCLIUsage(), - pm=self.pm, md_out_fp=(tempdir + '/' + out_dir)) + pm=self.pm, + md_out_dir=(tempdir + '/' + out_dir)) dump_recorded_md_file(cfg, provnode, action_name, md_id, fn) out_path = pathlib.Path(tempdir) / out_dir / action_name / fn @@ -350,7 +351,8 @@ def test_replay_optional_param_is_none(self): dag = self.das.int_seq_optional_input.dag with tempfile.TemporaryDirectory() as tempdir: out_path = pathlib.Path(tempdir) / 'ns_coll.txt' - replay_provenance(ReplayCLIUsage, dag, out_path, md_out_fp=tempdir) + replay_provenance(ReplayCLIUsage, dag, out_path, + md_out_dir=tempdir) with open(out_path, 'r') as fp: rendered = fp.read() @@ -377,7 +379,8 @@ def test_replay_from_provdag_ns_collision(self): exp = ['concatenated-ints-0', 'concatenated-ints-1'] with tempfile.TemporaryDirectory() as tempdir: out_path = pathlib.Path(tempdir) / 'ns_coll.txt' - replay_provenance(ReplayCLIUsage, dag, out_path, md_out_fp=tempdir) + replay_provenance(ReplayCLIUsage, dag, out_path, + md_out_dir=tempdir) with open(out_path, 'r') as fp: rendered = fp.read()