Add test coverage

This commit is contained in:
2026-02-20 05:23:43 +00:00
parent b86dfe7373
commit e03747f526
3 changed files with 61 additions and 151 deletions

View File

@@ -34,19 +34,50 @@ build-backend = "uv_build"
dev = [
"inline-snapshot>=0.32.1",
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"pytest-env>=1.5.0",
"pytest-recording>=0.13.4",
"ruff>=0.15.1",
"ty>=0.0.17",
]
[tool.ruff]
exclude = ["tests"]
[tool.ruff.lint]
select = ['ALL']
ignore = ['D203', 'D213']
[tool.ty.src]
include = ["src", "packages"]
exclude = ["tests"]
[tool.uv.sources]
rag-client = { workspace = true }
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
addopts = [
"--cov=capa_de_integracion",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-branch",
]
env = [
"FIRESTORE_EMULATOR_HOST=[::1]:8911",
"GCP_PROJECT_ID=test-project",
"GCP_LOCATION=us-central1",
"GCP_FIRESTORE_DATABASE_ID=(default)",
"RAG_ENDPOINT_URL=http://localhost:8000/rag",
"REDIS_HOST=localhost",
"REDIS_PORT=6379",
"DLP_TEMPLATE_COMPLETE_FLOW=projects/test/dlpJobTriggers/test",
]
[tool.uv.workspace]
members = [
"packages/rag-client",