Skip to content
Snippets Groups Projects
Verified Commit 76b8f95c authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Improve legibility of assert statement and fix removal of used venv

parent b0ea2a3a
Branches
Tags
1 merge request!7Add a skeleton test that creates and destroys a venv
......@@ -31,9 +31,8 @@ def test_create_venv_and_run_playbook():
).decode()
# Clean up the used venv
subprocess.check_call(['rm', '-r', venv_path])
subprocess.check_call(['rm', '-fr', venv_path])
print(playbook_run)
assert playbook_run.endswith("""localhost : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
""")
assert ' '.join(playbook_run.split()).endswith(
'localhost : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0'
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment