From cf363d063c4b82c2960a8920b6cf5142ef2f2bf2 Mon Sep 17 00:00:00 2001 From: Achille Roussel Date: Mon, 17 Jun 2024 22:06:19 -0700 Subject: [PATCH] switch pytest.mark.asyncio position because maybe that's why the tests are skipped on 3.8/3.9 Signed-off-by: Achille Roussel --- tests/test_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_client.py b/tests/test_client.py index 70e754d..7c4d422 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -34,8 +34,8 @@ def test_can_be_constructed_on_https(): Client(api_url="https://example.com", api_key="foo") -@mock.patch.dict(os.environ, {"DISPATCH_API_KEY": "0000000000000000"}) @pytest.mark.asyncio +@mock.patch.dict(os.environ, {"DISPATCH_API_KEY": "0000000000000000"}) async def test_api_key_from_env(): async with server() as api: client = Client(api_url=api.url)