Skip to content

Commit 6106653

Browse files
committed
chore(gapic): update credentials golden to match generator output
1 parent 1e9a162 commit 6106653

1 file changed

Lines changed: 24 additions & 23 deletions

File tree

  • packages/gapic-generator/tests/integration/goldens/credentials/tests/unit/gapic/credentials_v1

packages/gapic-generator/tests/integration/goldens/credentials/tests/unit/gapic/credentials_v1/test_iam_credentials.py

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,52 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
import asyncio
17-
import json
18-
import math
1916
import os
20-
from collections.abc import AsyncIterable, Iterable, Mapping, Sequence
17+
import asyncio
2118
from unittest import mock
2219
from unittest.mock import AsyncMock
2320

2421
import grpc
22+
from grpc.experimental import aio
23+
from collections.abc import Iterable, AsyncIterable
24+
from google.protobuf import json_format
25+
import json
26+
import math
2527
import pytest
28+
from collections.abc import Sequence, Mapping
2629
from google.api_core import api_core_version
27-
from google.protobuf import json_format
28-
from grpc.experimental import aio
29-
from proto.marshal.rules import wrappers
3030
from proto.marshal.rules.dates import DurationRule, TimestampRule
31-
from requests import PreparedRequest, Request, Response
31+
from proto.marshal.rules import wrappers
32+
from requests import Response
33+
from requests import Request, PreparedRequest
3234
from requests.sessions import Session
35+
from google.protobuf import json_format
3336

3437
try:
3538
from google.auth.aio import credentials as ga_credentials_async
3639
HAS_GOOGLE_AUTH_AIO = True
3740
except ImportError: # pragma: NO COVER
3841
HAS_GOOGLE_AUTH_AIO = False
3942

40-
import google.auth
41-
import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
42-
import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
43-
from google.api_core import (
44-
client_options,
45-
gapic_v1,
46-
grpc_helpers,
47-
grpc_helpers_async,
48-
path_template,
49-
)
43+
from google.api_core import client_options
5044
from google.api_core import exceptions as core_exceptions
45+
from google.api_core import gapic_v1
46+
from google.api_core import grpc_helpers
47+
from google.api_core import grpc_helpers_async
48+
from google.api_core import path_template
5149
from google.api_core import retry as retries
5250
from google.auth import credentials as ga_credentials
5351
from google.auth.exceptions import MutualTLSChannelError
54-
from google.iam.credentials_v1.services.iam_credentials import (
55-
IAMCredentialsAsyncClient,
56-
IAMCredentialsClient,
57-
transports,
58-
)
52+
from google.iam.credentials_v1.services.iam_credentials import IAMCredentialsAsyncClient
53+
from google.iam.credentials_v1.services.iam_credentials import IAMCredentialsClient
54+
from google.iam.credentials_v1.services.iam_credentials import transports
5955
from google.iam.credentials_v1.types import common
6056
from google.oauth2 import service_account
57+
import google.auth
58+
import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
59+
import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
60+
61+
6162

6263
CRED_INFO_JSON = {
6364
"credential_source": "/path/to/file",

0 commit comments

Comments
 (0)