1
0
Fork 0
mirror of synced 2024-12-21 22:21:08 -05:00

Remove superfluous f-strings

This commit is contained in:
Tim Byrne 2020-12-21 15:38:31 -06:00
parent c8d516c67d
commit 6b068a141d
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12
4 changed files with 6 additions and 6 deletions

View file

@ -22,7 +22,7 @@ def test_ext_encryption(runner, yadm, paths, tmpdir, crypt, cmd, var):
pgm = bindir.join('test-ext-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)
if crypt == 'installed-but-failed':
pgm.write('false\n', mode='a')

View file

@ -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_REPO={paths.repo}\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
for func in [

View file

@ -52,12 +52,12 @@ def test_set_local_alt_values(
assert f"os='{tst_sys}'" in run.out
if override == 'hostname':
assert f"host='override'" in run.out
assert "host='override'" in run.out
else:
assert f"host='{tst_host}'" in run.out
if override == 'user':
assert f"user='override'" in run.out
assert "user='override'" in run.out
else:
assert f"user='{tst_user}'" in run.out

View file

@ -89,8 +89,8 @@ end of template
'''
INCLUDE_BASIC = 'basic\n'
INCLUDE_VARIABLES = f'''\
included <{{{{ yadm.class }}}}> file
INCLUDE_VARIABLES = '''\
included <{{ yadm.class }}> file
empty line above
'''