Skip to content

Commit

Permalink
Fixed nox issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RupinderKaurSSB committed Jun 21, 2024
1 parent 608f166 commit de1faf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def test_get_versions_with_invalid_bucket_name(
bucket_name = "invalid-bucket"
file_name = "test-file.txt"
mock_client.return_value.get_bucket.side_effect = (
google.cloud.exceptions.NotFound("Sorry, mentioned bucket does´t exist. ")
google.cloud.exceptions.NotFound(f'Sorry, mentioned bucket does´t exist. ')
)

files = FileClient.get_versions(bucket_name, file_name)
Expand All @@ -184,7 +184,7 @@ def test_restore_version_with_invalid_bucket_name(
source_file_name = "test-file.txt"
source_generation_id = "1234567890"
mock_client.return_value.get_bucket.side_effect = (
google.cloud.exceptions.NotFound("Sorry, mentioned bucket does´t exist. ")
google.cloud.exceptions.NotFound(f'Sorry, mentioned bucket does´t exist. ')
)

result = FileClient.restore_version(
Expand All @@ -206,7 +206,7 @@ def test_restore_version_with_invalid_file_name(
mock_bucket.versioning_enabled = True
mock_client.return_value.get_bucket.return_value = mock_bucket
mock_bucket.copy_blob.side_effect = google.cloud.exceptions.NotFound(
"No such object. Check file name or the generation number"
f'No such object. Check file name or the generation number'
)

result = FileClient.restore_version(
Expand Down

0 comments on commit de1faf5

Please sign in to comment.