Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
python-version: ${{ env.PYTHON-VERSION }}
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
python-version: ${{ env.PYTHON-VERSION }}
- name: Set up Node.js
Expand Down
52 changes: 48 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"cy:verify": "env -u ELECTRON_RUN_AS_NODE npx cypress verify"
},
"devDependencies": {
"cypress": "^15.20.0"
"cypress": "^15.21.0"
},
"keywords": [],
"author": "",
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ classifiers = [

dependencies = [
"click>=8.1.0",
"fastapi==0.136.1",
"fastapi==0.141.1",
"pydantic-ai-slim[openai]>=1.93.0",
"python-dotenv>=1.2.2",
"python-multipart>=0.0.28",
"uvicorn==0.46.0",
"uvicorn==0.52.4",
"pymupdf>=1.27.2",
"pymupdf4llm>=1.27.2",
"regex>=2026.5.9",
Expand Down
13 changes: 6 additions & 7 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
"""Test configuration and fixtures."""

import os

import pytest
from fastapi.testclient import TestClient

from bibra.main import app

# Ensure all tests use the test config file already at import time,
# before the FastAPI app is created and the project registry is initialized.
os.environ.setdefault("BIBRA_CONFIG", "tests/projects.toml")


@pytest.fixture
def client():
"""Create a test client for the FastAPI app."""
return TestClient(app)


@pytest.fixture(autouse=True)
def set_test_config(monkeypatch: pytest.MonkeyPatch):
"""Ensure all tests use the test config file."""
# Per-test override for tests creating their own ProjectRegistry()
monkeypatch.setenv("BIBRA_CONFIG", "tests/projects.toml")
Loading