changeset 567:9feca3bb9395 pytest2

pass app object to test classes for now - needs better funcargs
author Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
date Wed, 01 Jun 2011 13:01:19 +0200
parents b759201f2812
children 1ea65bb705e6
files MoinMoin/conftest.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/conftest.py	Wed Jun 01 16:17:51 2011 +0530
+++ b/MoinMoin/conftest.py	Wed Jun 01 13:01:19 2011 +0200
@@ -101,6 +101,8 @@
         self.app, self.ctx = init_test_app(given_config)
 
         super(MoinTestFunction, self).setup()
+        #XXX: hack till we get better funcarg tools
+        self._obj.im_self.app = self.app
 
     def teardown(self):
         super(MoinTestFunction, self).teardown()