Files
zzrouter/backend/pyproject.toml
tech d080e67c29 test: add comprehensive test suite with 89% coverage
- Add tests for all backend modules: config, database, models, services,
  routes, middleware, and providers
- Separate dev dependencies using dependency-groups
- Update CLAUDE.md with test commands and project structure
- Add .coverage and .pytest_cache to gitignore

88 tests covering:
- Authentication and authorization
- Model routing and key selection
- Async logging with batch processing
- All API endpoints (chat, openai, anthropic, health)
- LiteLLM wrapper (mocked external calls)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 19:12:57 +08:00

38 lines
746 B
TOML

[project]
name = "zzrouter-backend"
version = "0.1.0"
description = "AI Model API Proxy Service"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"fastapi>=0.135.1",
"uvicorn[standard]>=0.41.0",
"litellm>=1.50.0",
"aiosqlite>=0.20.0",
"pydantic>=2.0.0",
]
[project.scripts]
zzrouter = "app.main:run_server"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["app"]
[dependency-groups]
dev = [
"pytest>=9.0.2",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.12.0",
"httpx>=0.26.0",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]