[Checkins] SVN: grok/trunk/src/grok/tests/ Cleanup.
Lennart Regebro
regebro at gmail.com
Wed Nov 7 10:47:50 EST 2007
Log message for revision 81594:
Cleanup.
Changed:
U grok/trunk/src/grok/tests/adapter/classorinterface.py
U grok/trunk/src/grok/tests/template/pluggability.py
U grok/trunk/src/grok/tests/test_grok.py
-=-
Modified: grok/trunk/src/grok/tests/adapter/classorinterface.py
===================================================================
--- grok/trunk/src/grok/tests/adapter/classorinterface.py 2007-11-07 15:45:16 UTC (rev 81593)
+++ grok/trunk/src/grok/tests/adapter/classorinterface.py 2007-11-07 15:47:50 UTC (rev 81594)
@@ -7,7 +7,7 @@
...
GrokImportError: You can only pass classes or interfaces to grok.context.
- >>> stringcontext()
+ >>> string_context()
Traceback (most recent call last):
...
GrokImportError: You can only pass classes or interfaces to grok.context.
@@ -32,7 +32,7 @@
class FunctionContext(object):
grok.context(a)
-def stringcontext():
+def string_context():
class StringContext(object):
grok.context('string')
Modified: grok/trunk/src/grok/tests/template/pluggability.py
===================================================================
--- grok/trunk/src/grok/tests/template/pluggability.py 2007-11-07 15:45:16 UTC (rev 81593)
+++ grok/trunk/src/grok/tests/template/pluggability.py 2007-11-07 15:47:50 UTC (rev 81594)
@@ -65,12 +65,6 @@
def __call__(self, filename, _prefix=None):
return MyPageTemplate(filename=filename, _prefix=_prefix)
-#import pdb
-#pdb.set_trace()
-
-# Small hack to make sure this gets grokked in the right order:
-#grok.grok_component('MyPageTemplateFactory', MyPageTemplateFactory)
-
class Cave(grok.Model):
pass
Modified: grok/trunk/src/grok/tests/test_grok.py
===================================================================
--- grok/trunk/src/grok/tests/test_grok.py 2007-11-07 15:45:16 UTC (rev 81593)
+++ grok/trunk/src/grok/tests/test_grok.py 2007-11-07 15:47:50 UTC (rev 81594)
@@ -35,8 +35,7 @@
tearDown=cleanUpZope,
checker=checker,
optionflags=doctest.ELLIPSIS+
- doctest.NORMALIZE_WHITESPACE+
- doctest.REPORT_ONLY_FIRST_FAILURE)
+ doctest.NORMALIZE_WHITESPACE)
suite.addTest(test)
return suite
More information about the Checkins
mailing list