pytest-loco

Declarative DSL for structured, extensible test scenarios in pytest.

pytest-loco introduces a YAML-based domain-specific language (DSL) for describing test workflows in a declarative and composable way. It is designed to support structured validation, data-driven execution, and pluggable extensions such as HTTP, JSON, and custom domain logic.

Installation

Requires Python 3.13 or newer.

Install from PyPI
pip install pytest-loco
Install from PyPI
poetry add pytest-loco

After installation, verify that the plugin is discovered by pytest:

Verify installation
pytest --trace-config
Verify installation
poetry run pytest --trace-config

You should see pytest-loco listed in registered third-party plugins block.

Bugs/Requests

Please use the GitHub issue tracker to submit bugs or request features.