Stop using event_loop fixture in specific places - refs #2461

This reverts commit 962da77d61.
pull/2464/head
Simon Willison 2025-02-04 12:09:02 -08:00
rodzic 962da77d61
commit 58196441e1
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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(event_loop, app_client, expires):
def test_cli_create_token(app_client, expires):
secret = app_client.ds._secret
runner = CliRunner(mix_stderr=False)
args = ["create-token", "--secret", secret, "test"]

Wyświetl plik

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