pytest-config/README.md

477 B

@lilith/pytest-config

Shared Pytest testing configuration for Lilith Python projects.

Installation

pip install lilith-pytest-config

Usage

Copy pytest.ini to your project root:

from lilith_pytest_config import get_config_path

# Get path to copy from
print(get_config_path())

Or reference settings in pyproject.toml:

[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
# ... copy other settings