From d14b61d53a1bfdcb72df8179a5d23dfd71a958a3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 06 2015 10:56:45 +0000 Subject: Drop the log handlers when running the tests --- diff --git a/tests/__init__.py b/tests/__init__.py index bf1f385..e9f0d65 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -31,6 +31,7 @@ from sqlalchemy.orm import scoped_session sys.path.insert(0, os.path.join(os.path.dirname( os.path.abspath(__file__)), '..')) +import progit import progit.lib import progit.lib.model @@ -50,6 +51,9 @@ if os.environ.get('BUILD_ID'): except: pass +# Remove the log handlers for the tests +progit.LOG.handlers = [] + @contextmanager def user_set(APP, user):