Skip to content

Commit

Permalink
switch pytest.mark.asyncio position because maybe that's why the test…
Browse files Browse the repository at this point in the history
…s are skipped on 3.8/3.9

Signed-off-by: Achille Roussel <[email protected]>
  • Loading branch information
achille-roussel committed Jun 18, 2024
1 parent d016221 commit cf363d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cf363d0

Please sign in to comment.