Skip to content

Commit

Permalink
add test_cli_convert_remap_names
Browse files Browse the repository at this point in the history
  • Loading branch information
simleo committed Jul 17, 2023
1 parent 689d75b commit 57e7958
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ def test_cli_convert_readme(data_dir, tmpdir):
assert crate.get(readme.name)


def test_cli_convert_remap_names(data_dir, tmpdir):
root = data_dir / "grepucase-run-1"
crate_dir = tmpdir / "grepucase-run-1-crate"
runner = CliRunner()
args = ["convert", str(root), "-o", str(crate_dir), "--remap-names"]
assert runner.invoke(cli, args).exit_code == 0
crate = ROCrate(crate_dir)
assert crate.get("grepucase_in/")
assert (crate_dir / "grepucase_in").is_dir()


def test_cli_report_provenance_minimal(data_dir, caplog):
crate_dir = data_dir / "revsort-provenance-crate-minimal"
runner = CliRunner()
Expand Down

0 comments on commit 57e7958

Please sign in to comment.