Skip to content

Commit

Permalink
Fix some tests missing client fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet committed Oct 19, 2024
1 parent f96f2ea commit 5456192
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/tests/unit/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_components_path(runner, default_settings, tmp_path):
assert str(temp_dir) in settings_service.settings.components_path


@pytest.mark.usefixtures("session")
@pytest.mark.usefixtures("client")
def test_superuser(runner):
result = runner.invoke(app, ["superuser"], input="admin\nadmin\n")
assert result.exit_code == 0, result.stdout
Expand Down
1 change: 1 addition & 0 deletions src/backend/tests/unit/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ async def test_load_flows(client: TestClient):
assert response.json()["folder_id"] is not None


@pytest.mark.usefixtures("client")
def test_sqlite_pragmas():
db_service = get_db_service()

Expand Down

0 comments on commit 5456192

Please sign in to comment.