changeset 573:7a29b52c8452 pytest2

MoinMoin.log.load_config(config_file) called from conftest.py to configure logging for tests.
author pkumar <contactprashantat@gmail.com>
date Wed, 08 Jun 2011 07:27:06 +0530
parents 81f27ab8c620
children b7105cee9db7
files MoinMoin/conftest.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/conftest.py	Wed Jun 08 07:21:46 2011 +0530
+++ b/MoinMoin/conftest.py	Wed Jun 08 07:27:06 2011 +0530
@@ -33,9 +33,11 @@
 from MoinMoin.app import create_app_ext, destroy_app, before_wiki, after_wiki
 from MoinMoin._tests import maketestwiki, wikiconfig
 from MoinMoin.storage.backends import create_simple_mapping
+import MoinMoin.log
 
-coverage_modules = set()
-
+Moindir = py.path.local(__file__).dirname
+config_file = Moindir + '/test_logging.conf'
+MoinMoin.log.load_config(config_file)
 
 def init_test_app(given_config):
     namespace_mapping, router_index_uri = create_simple_mapping("memory:", given_config.content_acl)