changeset 577:0ada641eaaf0 pytest2

new app initialized in test_test_environ.py to refresh the app.
author pkumar <contactprashantat@gmail.com>
date Fri, 17 Jun 2011 23:42:53 +0530
parents a9a8d49bb4f1
children 6cbcec2eb46f
files MoinMoin/_tests/test_test_environ.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_test_environ.py	Fri Jun 17 23:33:18 2011 +0530
+++ b/MoinMoin/_tests/test_test_environ.py	Fri Jun 17 23:42:53 2011 +0530
@@ -11,6 +11,7 @@
 from flask import current_app as app
 from flask import g as flaskg
 
+from MoinMoin.conftest import init_test_app, deinit_test_app
 from MoinMoin.config import NAME, CONTENTTYPE, IS_SYSITEM, SYSITEM_VERSION
 from MoinMoin.storage.error import NoSuchItemError
 
@@ -19,7 +20,8 @@
 class TestStorageEnvironWithoutConfig(object):
     def setup_method(self, method):
         self.class_level_value = 123
-
+        app, ctx = init_test_app(wikiconfig.Config)
+                
     def test_fresh_backends(self):
         assert self.class_level_value == 123