mod2doctest

No more copying and pasting into doctestable docstrings
Download

mod2doctest Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT
  • Price:
  • FREE
  • Publisher Name:
  • Andrew Carter
  • Publisher web site:
  • http://code.google.com/u/andrewjcarter/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 12 KB

mod2doctest Tags


mod2doctest Description

No more copying and pasting into doctestable docstrings mod2doctest is a free package that saves you from copying and pasting output into “doctestable” docstrings. So, if you’ve ever been annoyed by having to cut and paste output into your docstring (or unit test assert function, too) then maybe give mod2doctest a try.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. This docstring is now something that you can add to a test suite or can be picked up by module like nose. Also, with the m2d_print utility functions, you can easily make Sphinx/reST compatible docstring right within you module. Requirements: · Python


mod2doctest Related Software