Skip to content

Commit bf41e71

Browse files
committed
style(auth): fix black formatting and typo
1 parent a70c23f commit bf41e71

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

packages/google-auth/google/auth/credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def _with_regional_access_boundary(self, seed):
380380
def _with_blocking_regional_access_boundary_lookup(self):
381381
"""Returns a copy of these credentials with the blocking lookup mode enabled.
382382
This is intended for internal use only as blocking lookup requires additional
383-
care and consideration. Currently this is unsed by the gcloud CLI and
383+
care and consideration. Currently this is used by the gcloud CLI and
384384
therefore changes to the contract MUST be backwards compatible (e.g. the
385385
method signature must be unchanged and a copy of the credentials with the
386386
blocking lookup flag set to true must be returned).

packages/google-auth/tests/oauth2/test__client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ def test_lookup_regional_access_boundary_blocking():
811811
method="GET", url=url, headers=headers, timeout=3
812812
)
813813

814+
814815
def test_lookup_regional_access_boundary_blocking_error():
815816
mock_response = mock.create_autospec(transport.Response, instance=True)
816817
mock_response.status = http_client.INTERNAL_SERVER_ERROR

packages/google-auth/tests/test_credentials.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,16 @@ def _build_trust_boundary_lookup_url(self):
390390
with pytest.warns(DeprecationWarning):
391391
assert creds._build_regional_access_boundary_lookup_url() == "http://legacy.url"
392392

393+
393394
def test_before_request_triggers_rab_refresh():
394395
with mock.patch(
395-
"google.auth._regional_access_boundary_utils.is_regional_access_boundary_enabled",
396+
"google.auth._regional_access_boundary_utils."
397+
"is_regional_access_boundary_enabled",
396398
return_value=True,
397399
):
398-
with mock.patch("google.oauth2._client._lookup_regional_access_boundary") as lookup:
400+
with mock.patch(
401+
"google.oauth2._client._lookup_regional_access_boundary"
402+
) as lookup:
399403
lookup.return_value = {"encodedLocations": "0xA30"}
400404

401405
creds = CredentialsImpl()

0 commit comments

Comments
 (0)