fix: use TestClient as context manager to trigger lifespan
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user