mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Reduce Peewee's logging level to INFO in tests.
This commit is contained in:
parent
86b95a404a
commit
5979d91875
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user