doctest

Doctest is a testing framework in Python that allows developers to write tests in the form of interactive examples within docstrings of functions, classes, or modules. It's designed to ensure that code examples in documentation remain accurate and up to date.

Interesting facts

Doctest is part of the Python Standard Library and was first released as part of Python in the late 1990s. 

Sign up for updates
straight to your inbox