Skip to content

Commit

Permalink
testing autospec
Browse files Browse the repository at this point in the history
  • Loading branch information
weifonghsia committed Dec 7, 2023
1 parent 7154a17 commit 05dc933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gcf/tests/test_storage_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def setUp(self):

@unittest.mock.patch.dict(os.environ, {"GOOGLE_APPLICATION_CREDENTIALS": "mytemp.json"},
clear=True)
@unittest.mock.patch('main.storage.Client')
@unittest.mock.patch('main.storage.Client', autospec=True)
def test_list_bucket_object_names(self, mock_client):
mock_client().list_blobs.return_value = [
storage.Blob("blob1", "path"), storage.Blob("blob2", "path")]
Expand Down

0 comments on commit 05dc933

Please sign in to comment.