Skip to content

Commit

Permalink
Ontoportal CLI test (#529)
Browse files Browse the repository at this point in the history
## Changes
Ontoportal CLI test
- Update: Add testing off ontoportal JSON to CLI tests
- Update: run_convert() to support multiple output formats
  • Loading branch information
joeflack4 authored May 13, 2024
1 parent 6e3961f commit 4284d52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def test_cli_single_input(self):
elif test.inputformat == "tsv":
# These test only run on TSV inputs
self.run_convert(runner, test)
self.run_convert(runner, test, "ontoportal_json")
self.run_validate(runner, test)
self.run_parse(runner, test)

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

def run_convert(self, runner: CliRunner, test_case: SSSOMTestCase) -> Result:
def run_convert(self, runner: CliRunner, test_case: SSSOMTestCase, fmt="owl") -> Result:
"""Run the convert test."""
fmt = "owl"
params = [
test_case.filepath,
"--output",
Expand Down

0 comments on commit 4284d52

Please sign in to comment.