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
_______________________________________________ pytest-dev mailing list pytest-dev@python.org https://mail.python.org/mailman/listinfo/pytest-dev