Skip to content
Snippets Groups Projects
Commit 09e0633f authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

fix test with new click version

parent e3c1d611
No related branches found
No related tags found
No related merge requests found
......@@ -265,14 +265,14 @@ def setup_logging():
yield mock
@pytest.mark.parametrize("output", iter(cli.OutputMethod))
@pytest.mark.parametrize("output_method", iter(cli.OutputMethod))
@patch.object(cli, "main")
def test_cli_output_option(main, app_config_filename, output, all_juniper_routers):
def test_cli_output_option(main, app_config_filename, output_method, all_juniper_routers):
cli_args = [
"--config",
app_config_filename,
"--output",
str(output),
str(output_method),
"--all",
"--juniper",
all_juniper_routers[0],
......@@ -280,7 +280,7 @@ def test_cli_output_option(main, app_config_filename, output, all_juniper_router
runner = CliRunner()
result = runner.invoke(cli.cli, cli_args)
assert result.exit_code == 0, str(result)
assert main.call_args[1]["output"] == output
assert main.call_args[0][-1] == output_method
def verify_influx_content(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment