Bitperi(Periklis Gkolias)

Productivity tips and coding for thriving people

Doctests, the shy giant of testing modules

2018-05-29 Periklis Gkolias
Do you use python, even to wash your clothes? Do you find unit testing boring, but still have to do it, because you find value in automated testing? Then this article is for you. The idea I believe you have used the python console, from time to time. Lets assume you are writing a few inline functions like below, to experiment with stuff: $ python Python 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 18:10:19) [GCC 7. Continue reading