1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-21 20:59:10 +00:00

Fix ruff formatting in test_pfexec.py

This commit is contained in:
Mike Aldred 2026-03-20 06:30:30 +08:00
parent 47ec4f62d5
commit 192759b85d

View file

@ -77,7 +77,9 @@ def test_pfexec_custom_flags(mocker, parser, reset_cli_args):
var_options = {}
cmd = call_become_plugin(task, var_options, cmd=default_cmd, executable=default_exe)
print(cmd)
assert re.match(f"""{pfexec_exe} {pfexec_flags} {default_exe} -c 'echo {success}; {default_cmd}'""", cmd) is not None
assert (
re.match(f"""{pfexec_exe} {pfexec_flags} {default_exe} -c 'echo {success}; {default_cmd}'""", cmd) is not None
)
def test_pfexec_varoptions(mocker, parser, reset_cli_args):