Skip to content

Commit

Permalink
Use the correct redis connection in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Mar 30, 2015
1 parent ef9276d commit d091f9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import os
os.environ['REDASH_REDIS_URL'] = "redis://localhost:6379/5"

import logging
from unittest import TestCase
import datetime
from redash import settings

settings.DATABASE_CONFIG = {
'name': 'circle_test',
'threadlocals': True
}

settings.REDIS_URL = "redis://localhost:6379/5"

from redash import models, redis_connection

logging.getLogger('peewee').setLevel(logging.INFO)
Expand Down

0 comments on commit d091f9f

Please sign in to comment.