From d89044dbbc903723178833a98889678ecaa232b1 Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 23 Apr 2014 12:01:59 +0200 Subject: [PATCH] tests: fixed log init in helpers (log init must be done before any call to a log method) --- src/test/helpers.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/helpers.py b/src/test/helpers.py index 36f1d77c..7c8975e6 100644 --- a/src/test/helpers.py +++ b/src/test/helpers.py @@ -17,6 +17,11 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . + +## logging configuration for tests ## +from sat.core import log +log.satConfigure() + from sat.core import exceptions from constants import Const from wokkel.xmppim import RosterItem @@ -30,10 +35,6 @@ from xml.etree import cElementTree as etree from collections import Counter import re -## logging configuration for tests ## -from sat.core import log -log.satConfigure() - def b2s(value): """Convert a bool to a unicode string used in bridge