mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove fstrings in test
This commit is contained in:
parent
2bbfffbf22
commit
82fe0ebb9c
1 changed files with 1 additions and 1 deletions
|
@ -578,7 +578,7 @@ class CMDModuleTest(ModuleCase):
|
|||
core
|
||||
"""
|
||||
val = "i like cheese"
|
||||
args = f'-SecureString (ConvertTo-SecureString -String "{val}" -AsPlainText -Force) -ErrorAction Stop'
|
||||
args = '-SecureString (ConvertTo-SecureString -String "{}" -AsPlainText -Force) -ErrorAction Stop'.format(val)
|
||||
script = "salt://issue-56195/test.ps1"
|
||||
ret = self.run_function("cmd.script", [script], args=args, shell="pwsh")
|
||||
self.assertEqual(ret["stdout"], val)
|
||||
|
|
Loading…
Add table
Reference in a new issue