Skip to content

Commit 5889da8

Browse files
committed
style(api-core): run black formatter on gapic centralization files
1 parent 79c74a4 commit 5889da8

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

packages/google-api-core/google/api_core/gapic_v1/client_cert.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,3 @@ def get_client_cert_source(
7777
):
7878
client_cert_source = mtls.default_client_cert_source()
7979
return client_cert_source
80-

packages/google-api-core/tests/unit/gapic/test_client_cert.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ def test_use_client_cert_effective_with_google_auth(mock_method):
3838
@mock.patch.dict(os.environ, {}, clear=True)
3939
def test_use_client_cert_effective_fallback():
4040
# We must patch hasattr to simulate google-auth lacking the method
41-
with mock.patch(
42-
"google.api_core.gapic_v1.client_cert.hasattr", return_value=False
43-
):
41+
with mock.patch("google.api_core.gapic_v1.client_cert.hasattr", return_value=False):
4442
# Default is false
4543
assert use_client_cert_effective() is False
4644

packages/google-api-core/tests/unit/gapic/test_routing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ def test_get_universe_domain():
144144
)
145145

146146
# fallback to default
147-
assert (
148-
get_universe_domain(None, None, "default.com") == "default.com"
149-
) # noqa: E501
147+
assert get_universe_domain(None, None, "default.com") == "default.com" # noqa: E501
150148

151149

152150
def test_get_universe_domain_strip():

0 commit comments

Comments
 (0)