temporarily disable redis for tests

This commit is contained in:
jimmoffet
2022-08-02 16:26:37 -07:00
parent f02ee79d0b
commit ed8b7fe724
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ env:
ADMIN_BASE_URL: http://localhost:6012 ADMIN_BASE_URL: http://localhost:6012
API_HOST_NAME: http://localhost:6011 API_HOST_NAME: http://localhost:6011
REDIS_URL: redis://localhost:6380 REDIS_URL: redis://localhost:6380
REDIS_ENABLED: 1 REDIS_ENABLED: False
SQLALCHEMY_DATABASE_URI: postgresql://postgres:chummy@db:5432/notification_api SQLALCHEMY_DATABASE_URI: postgresql://postgres:chummy@db:5432/notification_api
SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api
AWS_REGION: us-west-2 AWS_REGION: us-west-2

View File

@@ -119,7 +119,7 @@ class Config(object):
# URL of redis instance # URL of redis instance
REDIS_URL = os.environ.get('REDIS_URL') REDIS_URL = os.environ.get('REDIS_URL')
REDIS_ENABLED = True REDIS_ENABLED = os.environ.get('REDIS_ENABLED')
EXPIRE_CACHE_TEN_MINUTES = 600 EXPIRE_CACHE_TEN_MINUTES = 600
EXPIRE_CACHE_EIGHT_DAYS = 8 * 24 * 60 * 60 EXPIRE_CACHE_EIGHT_DAYS = 8 * 24 * 60 * 60
@@ -409,7 +409,7 @@ class Development(Config):
DEBUG = True DEBUG = True
SQLALCHEMY_ECHO = False SQLALCHEMY_ECHO = False
REDIS_ENABLED = True REDIS_ENABLED = os.environ.get('REDIS_ENABLED')
CSV_UPLOAD_BUCKET_NAME = 'local-notifications-csv-upload' CSV_UPLOAD_BUCKET_NAME = 'local-notifications-csv-upload'
CONTACT_LIST_BUCKET_NAME = 'local-contact-list' CONTACT_LIST_BUCKET_NAME = 'local-contact-list'
@@ -554,7 +554,7 @@ class Live(Config):
CRONITOR_ENABLED = True CRONITOR_ENABLED = True
# DEBUG = True # DEBUG = True
REDIS_ENABLED = True REDIS_ENABLED = os.environ.get('REDIS_ENABLED')
NOTIFY_LOG_PATH = os.environ.get('NOTIFY_LOG_PATH', 'application.log') NOTIFY_LOG_PATH = os.environ.get('NOTIFY_LOG_PATH', 'application.log')
REDIS_URL = os.environ.get('REDIS_URL') REDIS_URL = os.environ.get('REDIS_URL')