[Checkins] SVN: grok/branches/ulif-docs2sphinx/src/grok/testing.py Update/fix docstring markup.
Uli Fouquet
uli at gnufix.de
Thu Dec 30 06:15:19 EST 2010
Log message for revision 119218:
Update/fix docstring markup.
Changed:
U grok/branches/ulif-docs2sphinx/src/grok/testing.py
-=-
Modified: grok/branches/ulif-docs2sphinx/src/grok/testing.py
===================================================================
--- grok/branches/ulif-docs2sphinx/src/grok/testing.py 2010-12-30 11:14:23 UTC (rev 119217)
+++ grok/branches/ulif-docs2sphinx/src/grok/testing.py 2010-12-30 11:15:18 UTC (rev 119218)
@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Grok test helpers
+"""Grok test helpers.
"""
import sys
from zope.configuration.config import ConfigurationMachine
@@ -21,6 +21,15 @@
def grok(module_name):
+ """Grok a module.
+
+ Test helper to 'grok' a module named by `module_name`, a dotted
+ path to a module like ``'mypkg.mymodule'``. 'grokking' hereby
+ means to do all the ZCML configurations triggered by directives
+ like ``grok.context()`` etc. This is only needed if your module
+ was not `grokked` during test setup time as it normally happens
+ with functional tests.
+ """
config = ConfigurationMachine()
zcml.do_grok('grokcore.component.meta', config)
zcml.do_grok('grokcore.security.meta', config)
@@ -41,7 +50,7 @@
Modified copy from zope.deprecation.tests to:
* make the signature identical to warnings.warn
- * to check for *.pyc and *.pyo files.
+ * to check for \*.pyc and \*.pyo files.
When zope.deprecation is fixed, this warn function can be removed again.
"""
More information about the checkins
mailing list