Skip to content

Commit 4284d52

Browse files
authored
Ontoportal CLI test (#529)
## Changes Ontoportal CLI test - Update: Add testing off ontoportal JSON to CLI tests - Update: run_convert() to support multiple output formats
1 parent 6e3961f commit 4284d52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def test_cli_single_input(self):
5252
elif test.inputformat == "tsv":
5353
# These test only run on TSV inputs
5454
self.run_convert(runner, test)
55+
self.run_convert(runner, test, "ontoportal_json")
5556
self.run_validate(runner, test)
5657
self.run_parse(runner, test)
5758

@@ -89,9 +90,8 @@ def run_successful(self, result: Result, obj: Any) -> None:
8990
if result.exit_code:
9091
raise RuntimeError(f"{obj} failed") from result.exception
9192

92-
def run_convert(self, runner: CliRunner, test_case: SSSOMTestCase) -> Result:
93+
def run_convert(self, runner: CliRunner, test_case: SSSOMTestCase, fmt="owl") -> Result:
9394
"""Run the convert test."""
94-
fmt = "owl"
9595
params = [
9696
test_case.filepath,
9797
"--output",

0 commit comments

Comments
 (0)