Skip to content

Commit

Permalink
Try the event_loop fixture (#2463)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Feb 4, 2025
1 parent b9047d8 commit 962da77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ async def test_auth_with_dstok_token(ds_client, scenario, should_work):


@pytest.mark.parametrize("expires", (None, 1000, -1000))
def test_cli_create_token(app_client, expires):
def test_cli_create_token(event_loop, app_client, expires):
secret = app_client.ds._secret
runner = CliRunner(mix_stderr=False)
args = ["create-token", "--secret", secret, "test"]
Expand Down
3 changes: 1 addition & 2 deletions tests/test_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,6 @@ async def test_actor_endpoint_allows_any_token():
}


@pytest.mark.serial
@pytest.mark.parametrize(
"options,expected",
(
Expand Down Expand Up @@ -984,7 +983,7 @@ async def test_actor_endpoint_allows_any_token():
),
),
)
def test_cli_create_token(options, expected):
def test_cli_create_token(event_loop, options, expected):
runner = CliRunner()
result1 = runner.invoke(
cli,
Expand Down

0 comments on commit 962da77

Please sign in to comment.