We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent debe5d8 commit 8487159Copy full SHA for 8487159
tests/test_client.py
@@ -48,8 +48,8 @@ async def test_api_key_from_env():
48
client = Client(api_url=api.url)
49
50
with pytest.raises(
51
- PermissionError,
52
- 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\)",
53
) as mc:
54
await client.dispatch([Call(function="my-function", input=42)])
55
finally:
@@ -58,6 +58,7 @@ async def test_api_key_from_env():
58
else:
59
os.environ["DISPATCH_API_KEY"] = prev_api_key
60
61
+
62
@pytest.mark.asyncio
63
async def test_api_key_from_arg():
64
async with server() as api:
0 commit comments