Skip to content

Commit

Permalink
Fetch credentials for setting up redis from test_config
Browse files Browse the repository at this point in the history
  • Loading branch information
ferbncode authored and gentlecat committed Aug 6, 2017
1 parent 1818604 commit feab5ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
from brainzutils import cache


REDIS_HOST = 'critiquebrainz_redis'
REDIS_PORT = 6379
REDIS_NAMESPACE = 'CB'
from critiquebrainz.test_config import REDIS_HOST, REDIS_PORT, REDIS_NAMESPACE


def setup_cache():
Expand Down
5 changes: 5 additions & 0 deletions critiquebrainz/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@
OAUTH_TOKEN_LENGTH = 40
OAUTH_GRANT_EXPIRE = 60
OAUTH_TOKEN_EXPIRE = 3600

# Redis
REDIS_HOST = 'critiquebrainz_redis'
REDIS_PORT = 6379
REDIS_NAMESPACE = 'CB'

0 comments on commit feab5ac

Please sign in to comment.