kopia lustrzana https://github.com/simonw/datasette
Remove legacy event_loop fixture usage
rodzic
571ce651c1
commit
5d09ab3ff1
|
@ -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"]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"]
|
||||
|
|
Ładowanie…
Reference in New Issue