Mercurial > libervia-backend
changeset 998:f5761534e0f3
tests: fixed log init in helpers (log init must be done before any call to a log method)
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 23 Apr 2014 12:01:59 +0200 |
parents | b3f383ab39da |
children | c37a24922f27 |
files | src/test/helpers.py |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/test/helpers.py Mon Apr 21 20:04:52 2014 +0200 +++ b/src/test/helpers.py Wed Apr 23 12:01:59 2014 +0200 @@ -17,6 +17,11 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. + +## 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 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