fix: use TestClient as context manager to trigger lifespan

This commit is contained in:
2026-03-18 15:05:01 -05:00
parent 9b1108da5c
commit ea3da00b95
5 changed files with 15 additions and 10 deletions

View File

@@ -40,5 +40,5 @@ dev = [
[tool.taskipy.tasks]
dev = "uvicorn src.naliiabotapi.main:app --host 0.0.0.0 --port 8010 --reload"
test = "pytest -v"
test = "pytest -vv"
test-cov = "pytest tests/test_agent.py --cov=src.naliiabot.bot.agent --cov-report=html && python -m http.server 8000 --directory htmlcov"