@@ -4,11 +4,12 @@ replacements:
44 packages/google-cloud-storage/noxfile.py,
55 ]
66 before : |
7- UNIT_TEST_EXTRAS : List\[str\] = \[\]
7+ UNIT_TEST_DEPENDENCIES : List\[str\] = \[\]
88 after : |
9- UNIT_TEST_EXTRAS : List[str] = [
9+ UNIT_TEST_DEPENDENCIES : List[str] = [
1010 "brotli",
1111 "grpcio",
12+ "grpc-google-iam-v1",
1213 "opentelemetry-api",
1314 "opentelemetry-sdk",
1415 ]
@@ -642,6 +643,8 @@ replacements:
642643 [\s\S]*?grpc-google-iam-v1==0.14.0
643644 after : |
644645 google-auth==2.26.1
646+ # cryptography is a direct dependency of google-auth
647+ cryptography
645648 google-api-core==2.27.0
646649 google-cloud-core==2.4.2
647650 google-resumable-media==2.7.2
@@ -661,6 +664,8 @@ replacements:
661664 [\s\S]*?grpc-google-iam-v1
662665 after : |
663666 google-auth
667+ # cryptography is a direct dependency of google-auth
668+ cryptography
664669 google-api-core
665670 google-cloud-core
666671 google-resumable-media
@@ -679,6 +684,8 @@ replacements:
679684 [\s\S]*?grpc-google-iam-v1>=0
680685 after : |
681686 google-auth
687+ # cryptography is a direct dependency of google-auth
688+ cryptography
682689 google-api-core
683690 google-cloud-core
684691 google-resumable-media
@@ -759,4 +766,22 @@ replacements:
759766 Official Google Cloud Storage How-to Guides <https://cloud.google.com/storage/docs/how-to>
760767 Official Google Cloud Storage Samples <https://cloud.google.com/storage/docs/samples>
761768 count : 1
769+ - paths : [
770+ packages/google-cloud-storage/tests/unit/__init__.py
771+ ]
772+ before : " #\n $"
773+ after : |
774+ import io
775+ import json
776+ import os
777+
778+
779+ def _read_local_json(json_file):
780+ here = os.path.dirname(__file__)
781+ json_path = os.path.abspath(os.path.join(here, json_file))
782+ with io.open(json_path, "r", encoding="utf-8-sig") as fileobj:
783+ return json.load(fileobj)
784+ count : 1
785+
786+
762787
0 commit comments