2 ms·
Doctest is writing unit tests in doctstrings. That system is an unit test that checks that functions are documented in the documentation. Nothing to do with do
by theshrike79 7mo ago
Doctest is writing unit tests in doctstrings.
That system is an unit test that checks that functions are documented in the documentation. Nothing to do with docstrings.
- dec0dedab0de 7mo agoright but docstrings are documentation, so if your doctest is working, then at least that part of the documentation is correct. Even without doctest, generating your documentation from docstrings is much easier to keep updated than writing your documentation somewhere else, because it is right there as you are making changes.