Remove legacy event_loop fixture usage

This commit is contained in:
Simon Willison 2025-10-01 12:51:23 -07:00
commit 5d09ab3ff1
3 changed files with 3 additions and 3 deletions

View file

@ -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()
args = ["create-token", "--secret", secret, "test"]

View file

@ -5,7 +5,7 @@ from pathlib import Path
code_root = Path(__file__).parent.parent
def test_black(event_loop):
def test_black():
runner = CliRunner()
result = runner.invoke(black.main, [str(code_root), "--check"])
assert result.exit_code == 0, result.output

View file

@ -36,7 +36,7 @@ def test_inspect_cli(app_client):
assert expected_count == database["tables"][table_name]["count"]
def test_inspect_cli_writes_to_file(event_loop, app_client):
def test_inspect_cli_writes_to_file(app_client):
runner = CliRunner()
result = runner.invoke(
cli, ["inspect", "fixtures.db", "--inspect-file", "foo.json"]