Skip to main content

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

mod2doctest-0.1.0.zip (10.6 kB view hashes)

Uploaded Source

Built Distributions

mod2doctest-0.1.0.win32-py2.6.exe (213.9 kB view hashes)

Uploaded Source

mod2doctest-0.1.0.win32-py2.5.exe (79.2 kB view hashes)

Uploaded Source

mod2doctest-0.1.0.win32-py2.4.exe (79.2 kB view hashes)

Uploaded Source

mod2doctest-0.1.0-py2.6.egg (35.2 kB view hashes)

Uploaded Source

mod2doctest-0.1.0-py2.5.egg (35.2 kB view hashes)

Uploaded Source

mod2doctest-0.1.0-py2.4.egg (35.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page