File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,12 @@ def test_gcloud_bigquery_factory(monkeypatch):
45
45
def test_gcloud_gcs_factory (monkeypatch ):
46
46
client = pretend .stub ()
47
47
48
- storage = pretend .stub (
49
- Client = pretend .stub (
50
- from_service_account_json = pretend .call_recorder (
51
- lambda path , project : client
52
- )
48
+ storage_Client = pretend .stub (
49
+ from_service_account_json = pretend .call_recorder (
50
+ lambda path , project : client
53
51
)
54
52
)
55
- monkeypatch .setattr (gcloud , "storage " , storage )
53
+ monkeypatch .setattr (gcloud , "storage_Client " , storage_Client )
56
54
57
55
request = pretend .stub (
58
56
registry = pretend .stub (
@@ -64,7 +62,7 @@ def test_gcloud_gcs_factory(monkeypatch):
64
62
)
65
63
66
64
assert gcloud .gcloud_gcs_factory (None , request ) is client
67
- assert storage . Client .from_service_account_json .calls == [
65
+ assert storage_Client .from_service_account_json .calls == [
68
66
pretend .call ("/the/path/to/gcloud.json" , project = "my-cool-project" )
69
67
]
70
68
You can’t perform that action at this time.
0 commit comments