Skip to content

Commit

Permalink
Remove superfluous f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLocehiliosan committed Dec 21, 2020
1 parent c8d516c commit 6b068a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/test_ext_crypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion test/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down
4 changes: 2 additions & 2 deletions test/test_unit_set_local_alt_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions test/test_unit_template_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
'''

INCLUDE_BASIC = 'basic\n'
INCLUDE_VARIABLES = f'''\
included <{{{{ yadm.class }}}}> file
INCLUDE_VARIABLES = '''\
included <{{ yadm.class }}> file
empty line above
'''
Expand Down

0 comments on commit 6b068a1

Please sign in to comment.