diff --git a/tests/test_client.py b/tests/test_client.py index e6fa5ab..871de26 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -48,8 +48,8 @@ async def test_api_key_from_env(): client = Client(api_url=api.url) with pytest.raises( - PermissionError, - match=r"Dispatch received an invalid authentication token \(check DISPATCH_API_KEY is correct\)", + PermissionError, + match=r"Dispatch received an invalid authentication token \(check DISPATCH_API_KEY is correct\)", ) as mc: await client.dispatch([Call(function="my-function", input=42)]) finally: @@ -58,6 +58,7 @@ async def test_api_key_from_env(): else: os.environ["DISPATCH_API_KEY"] = prev_api_key + @pytest.mark.asyncio async def test_api_key_from_arg(): async with server() as api: