Skip to content

Commit 52e5ecb

Browse files
committed
chore: fix the gapic unit tests
1 parent 067e6b0 commit 52e5ecb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

owlbot.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,18 @@
5454

5555
if renamed_path.exists():
5656
s.replace(
57-
renamed_path / "__init__.py",
58-
"from google.cloud.storage_v2 import gapic_version as package_version",
59-
"from google.cloud._storage_v2 import gapic_version as package_version",
60-
)
57+
renamed_path / "**/*.py",
58+
"google.cloud.storage_v2",
59+
"google.cloud._storage_v2",
60+
)
61+
62+
# Fix imports in the unit tests
63+
s.replace(
64+
"tests/unit/gapic/storage_v2/**/*.py",
65+
"google.cloud.storage_v2",
66+
"google.cloud._storage_v2",
67+
)
68+
6169

6270
s.remove_staging_dirs()
6371

0 commit comments

Comments
 (0)