Add machine readable --list output (#1592)

* Add machine readable --list output

* Refactor list_journals()

Create three new methods for each journal list format.
- JSON, YAML, STDOUT

* Added journal list export test

* Update test regex to handle windows filepaths
This commit is contained in:
Kevin 2022-09-24 12:46:49 -07:00 committed by GitHub
parent 057f31407a
commit 2df7acf488
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 9 deletions

View file

@ -23,6 +23,7 @@ def should_get_no_error(cli_run):
assert cli_run["status"] == 0, cli_run["status"]
@then(parse("the output should match\n{regex}"))
@then(parse('the output should match "{regex}"'))
def output_should_match(regex, cli_run):
out = cli_run["stdout"]