Add tests for authentication and utilities, and update dependencies

- Created a new test package for services and added tests for AuthService.
- Implemented tests for user registration, login, and token creation.
- Added a new test package for utilities and included tests for password and JWT utilities.
- Updated `uv.lock` to include new dependencies: bcrypt, email-validator, pyjwt, and pytest-asyncio.
This commit is contained in:
JSC
2025-07-25 17:48:43 +02:00
parent af20bc8724
commit e456d34897
23 changed files with 2381 additions and 8 deletions

View File

@@ -6,8 +6,12 @@ readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"aiosqlite==0.21.0",
"bcrypt==4.3.0",
"email-validator==2.2.0",
"fastapi[standard]==0.116.1",
"pydantic-settings==2.10.1",
"pyjwt==2.10.1",
"sqlmodel==0.0.24",
"uvicorn[standard]==0.35.0",
]
@@ -15,10 +19,11 @@ dependencies = [
dev-dependencies = [
"coverage==7.9.2",
"faker==37.4.2",
"httpx==0.28.1",
"mypy==1.17.0",
"pytest==8.4.1",
"pytest-asyncio==1.1.0",
"ruff==0.12.4",
"sqlmodel==0.0.24",
]
[tool.mypy]
@@ -32,3 +37,6 @@ exclude = ["alembic"]
[tool.ruff.lint]
select = ["ALL"]
ignore = ["D100", "D103"]
[tool.ruff.per-file-ignores]
"tests/**/*.py" = ["S101", "S105"]