Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fattouh92 committed Aug 28, 2024
1 parent 8232e17 commit 201c6e9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ def test_upload_file_gzipped(gcs_api_service, monkeypatch):
def test_list_files_with_prefix(gcs_api_service, monkeypatch):
mock_client = MagicMock()
mock_bucket = MagicMock()
mock_blobs = [MagicMock(name="file1.txt"), MagicMock(name="file2.txt")]
mock_blob1 = MagicMock()
mock_blob1.name = "file1.txt"
mock_blob2 = MagicMock()
mock_blob2.name = "file2.txt"
mock_blobs = [mock_blob1,mock_blob2]

mock_client.bucket.return_value = mock_bucket
mock_bucket.list_blobs.return_value = mock_blobs
Expand Down

0 comments on commit 201c6e9

Please sign in to comment.