Remove superfluous f-strings
This commit is contained in:
parent
c8d516c67d
commit
6b068a141d
4 changed files with 6 additions and 6 deletions
|
@ -22,7 +22,7 @@ def test_ext_encryption(runner, yadm, paths, tmpdir, crypt, cmd, var):
|
||||||
pgm = bindir.join('test-ext-crypt')
|
pgm = bindir.join('test-ext-crypt')
|
||||||
|
|
||||||
if crypt:
|
if crypt:
|
||||||
pgm.write(f'#!/bin/sh\necho ext-crypt ran\n')
|
pgm.write('#!/bin/sh\necho ext-crypt ran\n')
|
||||||
pgm.chmod(0o775)
|
pgm.chmod(0o775)
|
||||||
if crypt == 'installed-but-failed':
|
if crypt == 'installed-but-failed':
|
||||||
pgm.write('false\n', mode='a')
|
pgm.write('false\n', mode='a')
|
||||||
|
|
|
@ -78,7 +78,7 @@ def test_hook_env(runner, yadm_cmd, paths):
|
||||||
assert f'YADM_HOOK_FULL_COMMAND={cmd} extra_args\n' in run.out
|
assert f'YADM_HOOK_FULL_COMMAND={cmd} extra_args\n' in run.out
|
||||||
assert f'YADM_HOOK_REPO={paths.repo}\n' in run.out
|
assert f'YADM_HOOK_REPO={paths.repo}\n' in run.out
|
||||||
assert f'YADM_HOOK_WORK={paths.work}\n' in run.out
|
assert f'YADM_HOOK_WORK={paths.work}\n' in run.out
|
||||||
assert f'YADM_ENCRYPT_INCLUDE_FILES=\n' in run.out
|
assert 'YADM_ENCRYPT_INCLUDE_FILES=\n' in run.out
|
||||||
|
|
||||||
# verify the hook environment contains certain exported functions
|
# verify the hook environment contains certain exported functions
|
||||||
for func in [
|
for func in [
|
||||||
|
|
|
@ -52,12 +52,12 @@ def test_set_local_alt_values(
|
||||||
assert f"os='{tst_sys}'" in run.out
|
assert f"os='{tst_sys}'" in run.out
|
||||||
|
|
||||||
if override == 'hostname':
|
if override == 'hostname':
|
||||||
assert f"host='override'" in run.out
|
assert "host='override'" in run.out
|
||||||
else:
|
else:
|
||||||
assert f"host='{tst_host}'" in run.out
|
assert f"host='{tst_host}'" in run.out
|
||||||
|
|
||||||
if override == 'user':
|
if override == 'user':
|
||||||
assert f"user='override'" in run.out
|
assert "user='override'" in run.out
|
||||||
else:
|
else:
|
||||||
assert f"user='{tst_user}'" in run.out
|
assert f"user='{tst_user}'" in run.out
|
||||||
|
|
||||||
|
|
|
@ -89,8 +89,8 @@ end of template
|
||||||
'''
|
'''
|
||||||
|
|
||||||
INCLUDE_BASIC = 'basic\n'
|
INCLUDE_BASIC = 'basic\n'
|
||||||
INCLUDE_VARIABLES = f'''\
|
INCLUDE_VARIABLES = '''\
|
||||||
included <{{{{ yadm.class }}}}> file
|
included <{{ yadm.class }}> file
|
||||||
|
|
||||||
empty line above
|
empty line above
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue