errorworks
on PyPIFake servers that behave badly on purpose — including an LLM endpoint.
Written and maintained here, but copyright sits with the Digital Transformation Agency. Foundryside is the maintainer, not the owner.
What it is
Unit-testing a retry loop against a mock is easy; knowing whether a pipeline degrades gracefully under realistic fault patterns needs something that fails at you in anger. Four surfaces — LLM, web scraping, object storage, outbound mail — inject HTTP errors, connection failures, malformed and truncated responses, SSRF redirects, throttling and SMTP failures, at configurable rates.
Use it
bash
pip install errorworks