Skip to content

Glossary: Refactoring and Clean Code

doctest

A Python standard-library module that runs the examples written in docstrings and checks that they produce the shown results. It lets documentation examples double as tests.

Where the book teaches it

Related terms

Docstring