A way to convert any Python module to a doctest ready doc string.
Project description
mod2doctest is a module that converts a python module to a doctest compatible docstring.
It’s kind of like taking a python script, pasting it into an interactive interpreter and then copying the output back into a docstring.
With mod2doctest you can set up a test the “quick and dirty” way – just by making a module that tests your code, running it, and then inspecting the output. Then, you can use mod2doctest to take a snapshot of the output and convert it to a permanent test fixture.
Also has many convenience to make this process easier like adding ellipse markers for memory id / trace back and provides several formating features.
For full documentation please visit http://packages.python.org/mod2doctest/.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for mod2doctest-0.1.1.win32-py2.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 320152d8e942037621d3e09113dab44eef043cd0b50f0d4bdc757a382534e2c8 |
|
MD5 | 6cef97bfeb64a7bb647340ab4dbdea22 |
|
BLAKE2b-256 | 942fb76e7eff403fab8c5b2c1918cae8740bb2a6112712feefa4aa23ec06c847 |
Hashes for mod2doctest-0.1.1.win32-py2.5.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 742d9210741c9012d91f4919630e5d706de4ad8709ceac89986bf042d51dfbbc |
|
MD5 | c45ea96cd47d2e18115c44d3b9d421af |
|
BLAKE2b-256 | 110f6e33764f8ee5ea1f7d9526317cde2ef7449c68a7b6e2830dbfefcf350080 |
Hashes for mod2doctest-0.1.1.win32-py2.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd6b2bc45883a5791a85dbd81bc905a38e11a6e7052e5cb50991a08067484b63 |
|
MD5 | 9511a8b45bd181afb042af334a3c231d |
|
BLAKE2b-256 | 7d8cd0ab6bffa2201b7604186ebb6d706a86c4668ce1ebb56f8ca1778d5fd2e8 |