Skip to content

Commit

Permalink
Allow fstring linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Akm0d authored and dwoz committed Sep 30, 2024
1 parent 593dbf7 commit 7e334bc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ disable=R,
line-too-long,
locally-disabled,
logging-format-interpolation,
logging-fstring-interpolation,
missing-docstring,
no-member,
protected-access,
Expand Down
1 change: 1 addition & 0 deletions salt/utils/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3094,6 +3094,7 @@ class SaltSSHOptionParser(
]

def _mixin_setup(self):
# pylint: disable=W0106
self.add_option(
"-r",
"--raw",
Expand Down
10 changes: 10 additions & 0 deletions tests/pytests/integration/ssh/test_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e334bc

Please sign in to comment.