fix(tests): Correctly insert --view option

This commit is contained in:
Mohamed El Mouctar HAIDARA 2021-09-25 00:21:47 +02:00
parent 8c9ad83206
commit 9a0fdec592

View file

@ -23,7 +23,7 @@ def run_grapher(playbook_file: str, output_filename: str = None, additional_args
additional_args.insert(0, "-vv")
if "TEST_VIEW_GENERATED_FILE" in os.environ:
additional_args.append("--view")
additional_args.insert(1, "--view")
playbook_path = os.path.join(FIXTURES_DIR, playbook_file)
args = [__prog__]