mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Try the event_loop fixture (#2463)
Refs https://github.com/simonw/datasette/issues/2461#issuecomment-2634920351
This commit is contained in:
parent
b9047d812a
commit
962da77d61
2 changed files with 2 additions and 3 deletions
|
|
@ -307,7 +307,7 @@ async def test_auth_with_dstok_token(ds_client, scenario, should_work):
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("expires", (None, 1000, -1000))
|
@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
|
secret = app_client.ds._secret
|
||||||
runner = CliRunner(mix_stderr=False)
|
runner = CliRunner(mix_stderr=False)
|
||||||
args = ["create-token", "--secret", secret, "test"]
|
args = ["create-token", "--secret", secret, "test"]
|
||||||
|
|
|
||||||
|
|
@ -929,7 +929,6 @@ async def test_actor_endpoint_allows_any_token():
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.serial
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"options,expected",
|
"options,expected",
|
||||||
(
|
(
|
||||||
|
|
@ -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()
|
runner = CliRunner()
|
||||||
result1 = runner.invoke(
|
result1 = runner.invoke(
|
||||||
cli,
|
cli,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue