[Grok-dev] Martian and Fake Modules

Paul Wilson paulalexwilson at gmail.com
Tue Dec 15 20:44:35 EST 2009

Hi there,

I've just released an early version of manuelpi.fakemodule to PyPI
[1]. To recap, this allows you to define module's within doctests that
are automatically available for subsequent tests. This is tested and
works on Martian's README.txt only, on a branch that I've been hacking
on recently. [2]

I'm very interested in comments and feedback regarding this approach
and my implementation. Points to note:
 * "module-block:: <module-name>" - is this notation okay?
 * Every time a module block is encountered, I push all doctest's
defined object references into __builtin__. Why? Such that fake
modules can find things you've defined or imported in previous doctest

Hopefully it brings us a step further to realising the vision set forth in [3].


[1] http://pypi.python.org/pypi/manuelpi.fakemodule/0.1b1
[2] http://svn.zope.org/martian/branches/paw-manuel-fake-module/src/martian/README.txt?rev=106610&view=markup
[3] https://mail.zope.org/pipermail/grok-dev/2009-October/008813.html

More information about the Grok-dev mailing list