Integration Test Example using FastAPI and OpenSearch
- Docker
- docker-compose
- python 3.12
- uv
- Run
docker-compose up -dto run OpenSearch locally - Run
source .venv/bin/activateto activate the virtual environment - Run
uv sync --extra testto install all deps - Run
uv run uvicorn main:app --reload --host 0.0.0.0 --port 8000to run the app locally - Run
uv run pytest -qto run integration tests