Testing

pytest

Runs the whole suite against tests/ using dspy’s DummyLM in place of a real LM call. Tests that call the configured LM are marked live and skipped by default. Run them explicitly with:

pytest -m live

To run live tests, you must configure a model in an .env file. The tests skip gracefully if API_KEY is not set.

Some standard pytest shorthands: