[Checkins] SVN: grokproject/trunk/grokproject/template/src/+package+/tests.py_tmpl Allow FunctionalLayer to be torn down. Of course, due to the use of

Philipp von Weitershausen philikon at philikon.de
Sun Jul 13 11:26:51 EDT 2008


Log message for revision 88321:
  Allow FunctionalLayer to be torn down.  Of course, due to the use of
  the ever so tricky z3c.testsetup, this layer definition never gets used
  because z3c.testsetup defines its own functional layer every time
  (which doesn't allow tear down).
  
  z3c.testsetup badly needs a revamp.
  

Changed:
  U   grokproject/trunk/grokproject/template/src/+package+/tests.py_tmpl

-=-
Modified: grokproject/trunk/grokproject/template/src/+package+/tests.py_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/src/+package+/tests.py_tmpl	2008-07-13 14:59:39 UTC (rev 88320)
+++ grokproject/trunk/grokproject/template/src/+package+/tests.py_tmpl	2008-07-13 15:26:51 UTC (rev 88321)
@@ -6,6 +6,7 @@
 
 ftesting_zcml = os.path.join(
     os.path.dirname(${package}.__file__), 'ftesting.zcml')
-FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer')
+FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer',
+                            allow_teardown=True)
 
 test_suite = z3c.testsetup.register_all_tests('${package}')



More information about the Checkins mailing list