diff --git a/tests/scripts/test_ansible_lint_wrapper.py b/tests/scripts/test_ansible_lint_wrapper.py index 136e7d2..2eb8111 100644 --- a/tests/scripts/test_ansible_lint_wrapper.py +++ b/tests/scripts/test_ansible_lint_wrapper.py @@ -34,11 +34,11 @@ def parsed(stdout): """{key: value} of the stub's output; `link` may repeat, so it is collected in a list.""" out = {"link": []} for line in stdout.splitlines(): - key, _, value = line.partition("=") - if key == "link": - out["link"].append(value) + parts = line.partition("=") + if parts[0] == "link": + out["link"].append(parts[2]) else: - out[key] = value + out[parts[0]] = parts[2] return out