Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
khsrali committed Feb 7, 2025
1 parent 12f6234 commit 28300c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/transports/test_all_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_compress_error_handling(custom_transport, tmp_path_remote, monkeypatch)
transport.compress('unsupported_format', tmp_path_remote, tmp_path_remote / 'archive.tar', '/')

# if the remotesource does not exist
with pytest.raises(OSError, match=f'{tmp_path_remote / 'non_existing'} does not exist'):
with pytest.raises(OSError, match=f"{tmp_path_remote / 'non_existing'} does not exist"):
transport.compress('tar', tmp_path_remote / 'non_existing', tmp_path_remote / 'archive.tar', '/')

# if a matching pattern if remote source is not found
Expand All @@ -94,7 +94,7 @@ def test_compress_error_handling(custom_transport, tmp_path_remote, monkeypatch)
# if the remotedestination already exists
Path(tmp_path_remote / 'already_exist.tar').touch()
with pytest.raises(
OSError, match=f'The remote destination {tmp_path_remote / 'already_exist.tar'} already exists.'
OSError, match=f"The remote destination {tmp_path_remote / 'already_exist.tar'} already exists."
):
transport.compress('tar', tmp_path_remote, tmp_path_remote / 'already_exist.tar', '/', overwrite=False)

Expand Down

0 comments on commit 28300c7

Please sign in to comment.