Skip to content

Commit

Permalink
tests cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ohmayr committed Oct 2, 2024
1 parent 5a05091 commit daec685
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/unit/operations_v1/test_operations_rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def test_list_operations_rest_failure():

@pytest.mark.asyncio
async def test_list_operations_rest_failure_async():
if not GOOGLE_AUTH_AIO_INSTALLED and "async":
if not GOOGLE_AUTH_AIO_INSTALLED:
pytest.skip("Skipped because google-api-core[async_rest] is not installed")

client = _get_operations_client(is_async=True, http_options=None)
Expand Down Expand Up @@ -703,7 +703,7 @@ def test_list_operations_rest_pager():

@pytest.mark.asyncio
async def test_list_operations_rest_pager_async():
if not GOOGLE_AUTH_AIO_INSTALLED and "async":
if not GOOGLE_AUTH_AIO_INSTALLED:
pytest.skip("Skipped because google-api-core[async_rest] is not installed")
client = _get_operations_client(is_async=True, http_options=None)

Expand Down Expand Up @@ -1044,8 +1044,6 @@ async def test_cancel_operation_rest_failure_async():
CLIENTS_WITH_CREDENTIALS,
)
def test_credentials_transport_error(client_class, transport_class, credentials):
if not GOOGLE_AUTH_AIO_INSTALLED and "async" in str(transport_class).lower():
pytest.skip("Skipped because google-api-core[async_rest] is not installed")

# It is an error to provide credentials and a transport instance.
transport = transport_class(credentials=credentials)
Expand Down Expand Up @@ -1077,8 +1075,6 @@ def test_credentials_transport_error(client_class, transport_class, credentials)
CLIENTS_WITH_CREDENTIALS,
)
def test_transport_instance(client_class, transport_class, credentials):
if not GOOGLE_AUTH_AIO_INSTALLED and "async" in str(transport_class).lower():
pytest.skip("Skipped because google-api-core[async_rest] is not installed")
# A client may be instantiated with a custom transport instance.
transport = transport_class(
credentials=credentials,
Expand Down

0 comments on commit daec685

Please sign in to comment.