mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Allow fstring linting
This commit is contained in:
parent
593dbf7f9b
commit
7e334bce6f
3 changed files with 12 additions and 0 deletions
|
@ -452,6 +452,7 @@ disable=R,
|
|||
line-too-long,
|
||||
locally-disabled,
|
||||
logging-format-interpolation,
|
||||
logging-fstring-interpolation,
|
||||
missing-docstring,
|
||||
no-member,
|
||||
protected-access,
|
||||
|
|
|
@ -3094,6 +3094,7 @@ class SaltSSHOptionParser(
|
|||
]
|
||||
|
||||
def _mixin_setup(self):
|
||||
# pylint: disable=W0106
|
||||
self.add_option(
|
||||
"-r",
|
||||
"--raw",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue