Skip to content

Commit

Permalink
tests: fix remove formatted string where not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Nov 14, 2021
1 parent 21cf9cc commit bd68b31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/services/test_afc_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ def test_push_after_cd_recursive_current(afc_shell, tmp_path: Path):
try:
out = afc_shell.app_cmd(f'push {source_file} .')
assert not out.stderr
assert afc_shell.afc.get_file_contents(f'temp1/temp2/temp3/temp.txt') == b'data'
assert afc_shell.afc.get_file_contents(f'temp1/temp2/temp3/temp4/temp1.txt') == b'data1'
assert afc_shell.afc.get_file_contents('temp1/temp2/temp3/temp.txt') == b'data'
assert afc_shell.afc.get_file_contents('temp1/temp2/temp3/temp4/temp1.txt') == b'data1'
finally:
afc_shell.afc.rm('temp1')

Expand Down Expand Up @@ -412,8 +412,8 @@ def test_push_after_cd_recursive_with_slash_current(afc_shell, tmp_path: Path):
try:
out = afc_shell.app_cmd(f'push {source_file}/ .')
assert not out.stderr
assert afc_shell.afc.get_file_contents(f'temp1/temp3/temp.txt') == b'data'
assert afc_shell.afc.get_file_contents(f'temp1/temp3/temp4/temp1.txt') == b'data1'
assert afc_shell.afc.get_file_contents('temp1/temp3/temp.txt') == b'data'
assert afc_shell.afc.get_file_contents('temp1/temp3/temp4/temp1.txt') == b'data1'
finally:
afc_shell.afc.rm('temp1')

Expand Down Expand Up @@ -449,7 +449,7 @@ def test_push_after_cd_recursive_with_prefix(afc_shell, tmp_path: Path):
try:
out = afc_shell.app_cmd(f'push {source_file} temp1a/temp1b')
assert not out.stderr
assert afc_shell.afc.get_file_contents(f'temp1/temp1a/temp1b/temp2/temp3/temp.txt') == b'data'
assert afc_shell.afc.get_file_contents(f'temp1/temp1a/temp1b/temp2/temp3/temp4/temp1.txt') == b'data1'
assert afc_shell.afc.get_file_contents('temp1/temp1a/temp1b/temp2/temp3/temp.txt') == b'data'
assert afc_shell.afc.get_file_contents('temp1/temp1a/temp1b/temp2/temp3/temp4/temp1.txt') == b'data1'
finally:
afc_shell.afc.rm('temp1')

0 comments on commit bd68b31

Please sign in to comment.