changeset 578:6cbcec2eb46f pytest2

init_test_app called in setup_method() of TestUsersettings to avoid the test failure in test_frontend.
author pkumar <contactprashantat@gmail.com>
date Tue, 21 Jun 2011 01:57:36 +0530
parents 0ada641eaaf0
children 9db7ce03cbc5
files MoinMoin/apps/frontend/_tests/test_frontend.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/_tests/test_frontend.py	Fri Jun 17 23:42:53 2011 +0530
+++ b/MoinMoin/apps/frontend/_tests/test_frontend.py	Tue Jun 21 01:57:36 2011 +0530
@@ -12,7 +12,8 @@
 from MoinMoin.apps.frontend import views
 from MoinMoin import user
 from MoinMoin.util import crypto
-
+from MoinMoin.conftest import init_test_app, deinit_test_app
+from MoinMoin._tests import wikiconfig
 import pytest
 
 class TestFrontend(object):
@@ -60,6 +61,8 @@
         flaskg.user = user.User()
 
         self.user = None
+        # temporary hack till we apply some cleanup mechanism in tests
+        init_test_app(wikiconfig.Config)
 
     def teardown_method(self, method):
         """ Run after each test