Reduce Peewee's logging level to INFO in tests.

This commit is contained in:
Arik Fraimovich 2014-03-20 19:45:13 +02:00
parent 214806d31b
commit 21e02ee04e

View File

@ -1,3 +1,4 @@
import logging
from unittest import TestCase
from redash import settings, db, app
import redash.models
@ -11,6 +12,8 @@ settings.DATABASE_CONFIG = {
app.config['DATABASE'] = settings.DATABASE_CONFIG
db.load_database()
logging.getLogger('peewee').setLevel(logging.INFO)
for model in redash.models.all_models:
model._meta.database = db.database