Skip to content

Commit

Permalink
Three more event_loop fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Feb 4, 2025
1 parent a6e2006 commit 9f043ce
Show file tree
Hide file tree
Showing 3 changed files with 3 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
2 changes: 1 addition & 1 deletion tests/test_black.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
code_root = Path(__file__).parent.parent


def test_black():
def test_black(event_loop):
runner = CliRunner()
result = runner.invoke(black.main, [str(code_root), "--check"])
assert result.exit_code == 0, result.output
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(app_client):
def test_inspect_cli_writes_to_file(event_loop, app_client):
runner = CliRunner()
result = runner.invoke(
cli, ["inspect", "fixtures.db", "--inspect-file", "foo.json"]
Expand Down

0 comments on commit 9f043ce

Please sign in to comment.