Skip to content

Commit f0b0431

Browse files
committed
fix lint issues
1 parent 67fff61 commit f0b0431

File tree

5 files changed

+0
-9
lines changed

5 files changed

+0
-9
lines changed

tests/asyncio/test_rest_streaming_async.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ async def test_next_escaped_characters_in_string(
292292
@pytest.mark.asyncio
293293
@pytest.mark.parametrize("response_type", [EchoResponse, httpbody_pb2.HttpBody])
294294
async def test_next_not_array(response_type):
295-
296295
data = '{"hello": 0}'
297296
with mock.patch.object(
298297
ResponseMock, "content", return_value=mock_async_gen(data)
@@ -352,7 +351,6 @@ async def test_check_buffer(response_type, return_value):
352351
@pytest.mark.asyncio
353352
@pytest.mark.parametrize("response_type", [EchoResponse, httpbody_pb2.HttpBody])
354353
async def test_next_html(response_type):
355-
356354
data = "<!DOCTYPE html><html></html>"
357355
with mock.patch.object(
358356
ResponseMock, "content", return_value=mock_async_gen(data)

tests/unit/operations_v1/test_operations_rest_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ def test_operations_client_service_account_always_use_jwt(transport_class):
225225
PYPARAM_CLIENT,
226226
)
227227
def test_operations_client_from_service_account_file(client_class):
228-
229228
if "async" in str(client_class):
230229
# TODO(): Add support for service account creds to async REST transport.
231230
with pytest.raises(NotImplementedError):
@@ -1045,7 +1044,6 @@ async def test_cancel_operation_rest_failure_async():
10451044
PYPARAM_CLIENT_TRANSPORT_CREDENTIALS,
10461045
)
10471046
def test_credentials_transport_error(client_class, transport_class, credentials):
1048-
10491047
# It is an error to provide credentials and a transport instance.
10501048
transport = transport_class(credentials=credentials)
10511049
with pytest.raises(ValueError):

tests/unit/test_client_logging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def test_setup_logging_w_incorrect_scope():
8888

8989

9090
def test_initialize_logging():
91-
9291
with mock.patch("os.getenv", return_value="foogle.bar"):
9392
with mock.patch("google.api_core.client_logging._BASE_LOGGER_NAME", "foogle"):
9493
initialize_logging()

tests/unit/test_client_options.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def get_client_encrypted_cert():
2727

2828

2929
def test_constructor():
30-
3130
options = client_options.ClientOptions(
3231
api_endpoint="foo.googleapis.com",
3332
client_cert_source=get_client_cert,
@@ -54,7 +53,6 @@ def test_constructor():
5453

5554

5655
def test_constructor_with_encrypted_cert_source():
57-
5856
options = client_options.ClientOptions(
5957
api_endpoint="foo.googleapis.com",
6058
client_encrypted_cert_source=get_client_encrypted_cert,
@@ -78,7 +76,6 @@ def test_constructor_with_both_cert_sources():
7876

7977

8078
def test_constructor_with_api_key():
81-
8279
options = client_options.ClientOptions(
8380
api_endpoint="foo.googleapis.com",
8481
client_cert_source=get_client_cert,

tests/unit/test_page_iterator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ def test__has_next_page_w_max_results_not_done(self):
360360
assert iterator._has_next_page()
361361

362362
def test__has_next_page_w_max_results_done(self):
363-
364363
iterator = page_iterator.HTTPIterator(
365364
mock.sentinel.client,
366365
mock.sentinel.api_request,

0 commit comments

Comments
 (0)