Mercurial > libervia-backend
changeset 3659:d4b8f1e8f0b4
tests (e2e/cli): update JSON and XML outputs following changes in Libervia CLI
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 08 Sep 2021 11:18:01 +0200 |
parents | 9e491b2bab88 |
children | e584ce33ef1d cbb988a6f507 |
files | tests/e2e/libervia-cli/conftest.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/e2e/libervia-cli/conftest.py Wed Sep 08 11:17:51 2021 +0200 +++ b/tests/e2e/libervia-cli/conftest.py Wed Sep 08 11:18:01 2021 +0200 @@ -35,7 +35,7 @@ def __call__(self, *args, **kwargs): args = self.subcommands + list(args) self.subcommands.clear() - kwargs['output'] = 'json_raw' + kwargs['output'] = 'json-raw' kwargs['_tty_out'] = False cmd = li(*args, **kwargs) return json.loads(cmd.stdout) @@ -60,7 +60,7 @@ def __call__(self, *args, **kwargs): args = self.subcommands + list(args) self.subcommands.clear() - kwargs['output'] = 'xml_raw' + kwargs['output'] = 'xml-raw' kwargs['_tty_out'] = False cmd = li(*args, **kwargs) return self.parser(cmd.stdout.decode().strip()) @@ -153,13 +153,13 @@ @pytest.fixture(scope="session") def li_json(): - """Run li with "json_raw" output, and returns the parsed value""" + """Run li with "json-raw" output, and returns the parsed value""" return LiberviaCliJson() @pytest.fixture(scope="session") def li_elt(): - """Run li with "xml_raw" output, and returns the parsed value""" + """Run li with "xml-raw" output, and returns the parsed value""" return LiberviaCliElt()