Skip to content

🧪 Test

To run tests, run the following command:

# Install core dependencies:
pip install -r ./requirements/requirements.core.txt

# Pydantic-v1:
pip install -r ./requirements/requirements.pydantic-v1.txt
# Pydantic-v2:
pip install -r ./requirements/requirements.pydantic-settings.txt

# Install python test dependencies:
pip install -r ./requirements.test.txt

# Run tests:
python -m pytest -sv -o log_cli=true
# Or use the test script:
./scripts/test.sh -l -v -c

Pytest

# Install pytest:
pip install -U pytest pytest-cov pytest-xdist pytest-benchmark

# Run tests:
python -m pytest

# Pytest help:
python -m pytest --help

References