From 3bf9d6b462efde67226f21182dccafc3d020975d Mon Sep 17 00:00:00 2001 From: rr- Date: Fri, 15 Apr 2016 23:21:33 +0200 Subject: [PATCH] server/tests: add sql logging --- server/szurubooru/tests/conftest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/szurubooru/tests/conftest.py b/server/szurubooru/tests/conftest.py index 14fb7d02..804bf700 100644 --- a/server/szurubooru/tests/conftest.py +++ b/server/szurubooru/tests/conftest.py @@ -6,6 +6,9 @@ from szurubooru.util import misc @pytest.fixture def session(): + import logging + logging.basicConfig() + logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO) engine = sqlalchemy.create_engine('sqlite:///:memory:') session_maker = sqlalchemy.orm.sessionmaker(bind=engine) session_instance = sqlalchemy.orm.scoped_session(session_maker)