[pytest-dev] Announcing pytest-accept

Maximilian Roos m at maximilianroos.com
Wed Jun 2 13:44:16 EDT 2021


I recently released pytest-accept
<https://github.com/max-sixty/pytest-accept>. I'd appreciate any feedback —
ideas for improvements or thoughts on the current implementation.

To quote from the readme:

pytest-accept is a pytest plugin for automatically updating doctest
outputs. It runs doctests, observes the generated outputs, and writes them
to the doctests' documented outputs.

It's designed for a couple of use cases:

   - People who work with doctests and don't enjoy manually copying
   generated outputs from the pytest error log and pasting them into their
   doctests' documented outputs. pytest-accept does the copying & pasting for
   you.
   - People who generally find writing tests a bit annoying, and prefer to
   develop by "running the code and seeing whether it works". This library
   aims to make testing a joyful part of that development loop.

pytest-accept is decoupled from the doctests it works with — it can be used
with existing doctests, and the doctests it edits are no different from
normal doctests.
---

Thanks,
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/pytest-dev/attachments/20210602/de1ea85c/attachment.html>


More information about the pytest-dev mailing list