@@ -307,7 +307,9 @@ def _get_target_class(self):
307307 def _make_one (self , table = None , ** kwargs ):
308308 from google .api_core .exceptions import DeadlineExceeded
309309 from google .api_core .exceptions import ServiceUnavailable
310- from google .cloud .bigtable .data ._metrics import BigtableClientSideMetricsController
310+ from google .cloud .bigtable .data ._metrics import (
311+ BigtableClientSideMetricsController ,
312+ )
311313
312314 if table is None :
313315 table = mock .Mock ()
@@ -1097,7 +1099,9 @@ async def test_timeout_args_passed(self):
10971099 assert instance ._operation_timeout == expected_operation_timeout
10981100 assert instance ._attempt_timeout == expected_attempt_timeout
10991101 # make simulated gapic call
1100- await instance ._execute_mutate_rows ([self ._make_mutation ()], mock .Mock ())
1102+ await instance ._execute_mutate_rows (
1103+ [self ._make_mutation ()], mock .Mock ()
1104+ )
11011105 assert mutate_rows .call_count == 1
11021106 kwargs = mutate_rows .call_args [1 ]
11031107 assert kwargs ["operation_timeout" ] == expected_operation_timeout
@@ -1196,6 +1200,7 @@ async def test_customizable_retryable_errors(
11961200 down to the gapic layer.
11971201 """
11981202 from google .cloud .bigtable .data ._metrics import ActiveOperationMetric
1203+
11991204 with mock .patch .object (
12001205 google .api_core .retry , "if_exception_type"
12011206 ) as predicate_builder_mock :
@@ -1211,7 +1216,9 @@ async def test_customizable_retryable_errors(
12111216 predicate_builder_mock .return_value = expected_predicate
12121217 retry_fn_mock .side_effect = RuntimeError ("stop early" )
12131218 mutation = self ._make_mutation (count = 1 , size = 1 )
1214- await instance ._execute_mutate_rows ([mutation ], ActiveOperationMetric ("MUTATE_ROWS" ))
1219+ await instance ._execute_mutate_rows (
1220+ [mutation ], ActiveOperationMetric ("MUTATE_ROWS" )
1221+ )
12151222 # passed in errors should be used to build the predicate
12161223 predicate_builder_mock .assert_called_once_with (
12171224 * expected_retryables , _MutateRowsIncomplete
0 commit comments