Skip to content

Commit

Permalink
lint: rename variable, formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman committed Sep 19, 2022
1 parent 5758994 commit 49c0c66
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/unit/test_gcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ def test_gcloud_bigquery_factory(monkeypatch):
def test_gcloud_gcs_factory(monkeypatch):
client = pretend.stub()

storage_Client = pretend.stub(
from_service_account_json=pretend.call_recorder(
lambda path, project: client
)
storage_client = pretend.stub(
from_service_account_json=pretend.call_recorder(lambda path, project: client)
)
monkeypatch.setattr(gcloud, "storage_Client", storage_Client)
monkeypatch.setattr(gcloud, "storage_Client", storage_client)

request = pretend.stub(
registry=pretend.stub(
Expand All @@ -62,7 +60,7 @@ def test_gcloud_gcs_factory(monkeypatch):
)

assert gcloud.gcloud_gcs_factory(None, request) is client
assert storage_Client.from_service_account_json.calls == [
assert storage_client.from_service_account_json.calls == [
pretend.call("/the/path/to/gcloud.json", project="my-cool-project")
]

Expand Down

0 comments on commit 49c0c66

Please sign in to comment.