Allow fstring linting

This commit is contained in:
Tyler Levy Conde 2024-09-23 11:09:56 -06:00 committed by Daniel Wozniak
parent 593dbf7f9b
commit 7e334bce6f
3 changed files with 12 additions and 0 deletions

View file

@ -452,6 +452,7 @@ disable=R,
line-too-long,
locally-disabled,
logging-format-interpolation,
logging-fstring-interpolation,
missing-docstring,
no-member,
protected-access,

View file

@ -3094,6 +3094,7 @@ class SaltSSHOptionParser(
]
def _mixin_setup(self):
# pylint: disable=W0106
self.add_option(
"-r",
"--raw",

View file

@ -172,9 +172,19 @@ def test_relenv_dir(salt_ssh_cli):
assert ret.returncode == 0
thin_dir = pathlib.Path(ret.data)
assert thin_dir.is_dir()
assert thin_dir
assert thin_dir.joinpath("salt-call").exists()
def test_relenv_ping(salt_ssh_cli):
"""
Test a simple ping
"""
ret = salt_ssh_cli.run("--relenv", "test.ping")
assert ret.returncode == 0
assert ret.data is True.joinpath("salt-call").exists()
def test_wipe(salt_ssh_cli):
"""
Ensure --wipe is respected by the state module wrapper