Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 2f483c3

Browse files
committed
Fixed docs and linting
1 parent 2a3cd00 commit 2f483c3

3 files changed

Lines changed: 21 additions & 6 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Admin Client
2+
============
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
services_
7+
types_
8+
9+
..
10+
This should be the only handwritten RST file in this directory.
11+
Everything else should be autogenerated.

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Client Types
99

1010
data_client/data_client_usage
1111
classic_client/usage
12+
admin_client/admin_client_usage
1213

1314

1415
Changelog

tests/unit/admin_overlay/test_admin_packaging.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616

1717
import pytest
1818

19+
1920
@pytest.mark.parametrize(
20-
"module", [
21+
"module",
22+
[
2123
# Previous locations of admin API
2224
"google.cloud.bigtable_admin",
2325
"google.cloud.bigtable_admin_v2",
24-
2526
# New locations of admin API
2627
"google.cloud.bigtable.admin",
2728
"google.cloud.bigtable.admin_v2",
28-
]
29+
],
2930
)
3031
def test_admin_overlay_object_imports(module):
3132
# Simulate from <module> import <class> dynamically using importlib
@@ -67,7 +68,7 @@ def test_admin_overlay_object_imports(module):
6768
"google.cloud.bigtable_admin_v2.overlay.types.async_consistency",
6869
"google.cloud.bigtable.admin_v2.overlay.types.async_consistency",
6970
),
70-
]
71+
],
7172
)
7273
def test_admin_shim_import_aliasing(alias, actual):
7374
assert importlib.import_module(alias) == importlib.import_module(actual)
@@ -96,9 +97,11 @@ def test_admin_shim_import_aliasing(alias, actual):
9697
"RestoreTableOperation",
9798
"google.cloud.bigtable.admin_v2.overlay.types.restore_table",
9899
),
99-
]
100+
],
100101
)
101-
def test_admin_shim_services_types_subpackage_aliasing(alias, cls_name, subpackage_location):
102+
def test_admin_shim_services_types_subpackage_aliasing(
103+
alias, cls_name, subpackage_location
104+
):
102105
# Because of existing aliasing on the types/service subpackages in google.cloud.bigtable.admin_v2,
103106
# we need to see if this works with google.cloud.bigtable_admin_v2.
104107

0 commit comments

Comments
 (0)