changeset 572:81f27ab8c620 pytest2

test_logging.conf added for logging configurations of tests and pytest.set_trace removed from conftest.py.
author pkumar <contactprashantat@gmail.com>
date Wed, 08 Jun 2011 07:21:46 +0530
parents 957d41c088db
children 7a29b52c8452
files MoinMoin/conftest.py MoinMoin/test_logging.conf
diffstat 2 files changed, 24 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/conftest.py	Sun Jun 05 03:00:16 2011 +0530
+++ b/MoinMoin/conftest.py	Wed Jun 08 07:21:46 2011 +0530
@@ -66,8 +66,7 @@
                 given_config = cls.Config
             else:
                 given_config = wikiconfig.Config
-            
-            #pytest.set_trace()
+
             self.app, self.ctx = init_test_app(given_config)
             super(MoinTestFunction, self).setup()
             #XXX: hack till we get better funcarg tools
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/test_logging.conf	Wed Jun 08 07:21:46 2011 +0530
@@ -0,0 +1,23 @@
+[loggers]
+keys=root
+
+[handlers]
+keys=stderr
+
+[formatters]
+keys=tests
+
+[logger_root]
+level=DEBUG
+handlers=stderr
+
+[handler_stderr]
+class=StreamHandler
+level=NOTSET
+formatter=tests
+args=(sys.stderr, )
+
+[formatter_tests]
+format=None
+datefmt=
+class=logging.Formatter