Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
  • Loading branch information
achille-roussel committed Jun 18, 2024
1 parent debe5d8 commit 8487159
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 8487159

Please sign in to comment.