From e667577e161977ec0fe1ce9729674ae84b0f1b6d Mon Sep 17 00:00:00 2001 From: Tanner Stirrat Date: Tue, 3 Sep 2024 17:27:08 -0600 Subject: [PATCH] Use skips instead of custom mark --- pyproject.toml | 5 +---- tests/insecure_client_test.py | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 750cd91..a142c64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,13 +47,10 @@ ignore_missing_imports = true module = ["google.rpc.*", "grpcutil"] [tool.pytest.ini_options] -addopts = "-x -m \"not remote_calls\"" +addopts = "-x" log_level = "debug" minversion = "6.0" asyncio_mode = "auto" -markers = [ -"remote_calls: marks tests that make remote calls, not normally run" -] [tool.isort] ensure_newline_before_comments = true diff --git a/tests/insecure_client_test.py b/tests/insecure_client_test.py index b654ef5..114eea5 100644 --- a/tests/insecure_client_test.py +++ b/tests/insecure_client_test.py @@ -20,21 +20,21 @@ remote_host = "192.168.something.something" -@pytest.mark.remote_calls +@pytest.mark.skip(reason="Makes a remote call that we haven't yet supported in CI") async def test_normal_async_client_raises_error_on_insecure_remote_call(token): with pytest.raises(grpc.RpcError): client = AsyncClient(f"{remote_host}:50051", insecure_bearer_token_credentials(token)) await write_test_schema(client) -@pytest.mark.remote_calls +@pytest.mark.skip(reason="Makes a remote call that we haven't yet supported in CI") async def test_normal_sync_client_raises_error_on_insecure_remote_call(token): with pytest.raises(grpc.RpcError): client = SyncClient(f"{remote_host}:50051", insecure_bearer_token_credentials(token)) await write_test_schema(client) -@pytest.mark.remote_calls +@pytest.mark.skip(reason="Makes a remote call that we haven't yet supported in CI") async def test_insecure_client_makes_insecure_remote_call(token): insecure_client = InsecureClient(f"{remote_host}:50051", token) await write_test_schema(insecure_client)