GeezerVison is showing github.com — style: format async client and tests with ruff 0.14.14 · googleapis/google-cloud-python@d5d20f8
File treeExpand file treeCollapse file tree Open diff view settings packages/google-cloud-bigtable google/cloud/bigtable/data/_async
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-bigtable/google/cloud/bigtable/data/_async/client.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1448,7 +1448,7 @@ async def execute_rpc(): | 1448 | 1448 | request=SampleRowKeysRequest( | 1449 | 1449 | app_profile_id=self.app_profile_id, | 1450 | 1450 | row_range=row_range._to_pb() if row_range is not None else None, | 1451 | | - **self._request_path | | 1451 | + **self._request_path, | 1452 | 1452 | ), | 1453 | 1453 | timeout=next(attempt_timeout_gen), | 1454 | 1454 | retry=None, | |
Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-bigtable/tests/unit/data/_async/test_client.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2402,6 +2402,7 @@ async def test_sample_row_keys_w_row_range(self): | 2402 | 2402 | (b"b", 200), | 2403 | 2403 | ] | 2404 | 2404 | from google.cloud.bigtable.data import RowRange | | 2405 | + | 2405 | 2406 | row_range = RowRange(start_key=b"a", end_key=b"b") | 2406 | 2407 | async with self._make_client() as client: | 2407 | 2408 | async with client.get_table("instance", "table") as table: | |
Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-bigtable/tests/unit/data/_sync_autogen/test_client.py +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1325,8 +1325,8 @@ def _make_table(self, *args, **kwargs): | 1325 | 1325 | client_mock._register_instance.side_effect = lambda *args, **kwargs: ( | 1326 | 1326 | CrossSync._Sync_Impl.yield_to_event_loop() | 1327 | 1327 | ) | 1328 | | - client_mock._remove_instance_registration.side_effect = lambda *args, **kwargs: ( | 1329 | | - CrossSync._Sync_Impl.yield_to_event_loop() | | 1328 | + client_mock._remove_instance_registration.side_effect = ( | | 1329 | + lambda *args, **kwargs: (CrossSync._Sync_Impl.yield_to_event_loop()) | 1330 | 1330 | ) | 1331 | 1331 | kwargs["instance_id"] = kwargs.get( | 1332 | 1332 | "instance_id", args[0] if args else "instance" | @@ -2900,7 +2900,6 @@ def prepare_mock(self, client): | 2900 | 2900 | yield prepare_mock | 2901 | 2901 |
| 2902 | 2902 | def _make_gapic_stream(self, sample_list: list["ExecuteQueryResponse" | Exception]): | 2903 | | - | 2904 | 2903 | class MockStream: | 2905 | 2904 | def __init__(self, sample_list): | 2906 | 2905 | self.sample_list = sample_list | |
|