Split then join with spaces

This commit is contained in:
Daniel A. Wozniak 2025-01-01 02:13:41 -07:00 committed by Daniel Wozniak
parent b8a19d13dd
commit 1fb68df156

View file

@ -99,9 +99,5 @@ def test_help_log(salt_cli):
"""
ret = salt_cli.run("--help")
count = 0
stdout = ret.stdout.split("\n")
for line in stdout:
if "sensitive data:" in line:
count += 1
assert line.strip() == "sensitive data: all, debug, garbage, profile, trace"
assert count == 2
# This can be dependent on COLUMNS environment variable
assert "sensitive data: all, debug, garbage, profile, trace" in " ".join(ret.stdout.split())