mirror of
https://github.com/GSA/notifications-api.git
synced 2026-06-07 23:08:59 -04:00
temporarily disable redis for tests
This commit is contained in:
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
@@ -24,7 +24,7 @@ env:
|
||||
ADMIN_BASE_URL: http://localhost:6012
|
||||
API_HOST_NAME: http://localhost:6011
|
||||
REDIS_URL: redis://localhost:6380
|
||||
REDIS_ENABLED: 1
|
||||
REDIS_ENABLED: False
|
||||
SQLALCHEMY_DATABASE_URI: postgresql://postgres:chummy@db:5432/notification_api
|
||||
SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api
|
||||
AWS_REGION: us-west-2
|
||||
|
||||
@@ -119,7 +119,7 @@ class Config(object):
|
||||
|
||||
# URL of redis instance
|
||||
REDIS_URL = os.environ.get('REDIS_URL')
|
||||
REDIS_ENABLED = True
|
||||
REDIS_ENABLED = os.environ.get('REDIS_ENABLED')
|
||||
EXPIRE_CACHE_TEN_MINUTES = 600
|
||||
EXPIRE_CACHE_EIGHT_DAYS = 8 * 24 * 60 * 60
|
||||
|
||||
@@ -409,7 +409,7 @@ class Development(Config):
|
||||
DEBUG = True
|
||||
SQLALCHEMY_ECHO = False
|
||||
|
||||
REDIS_ENABLED = True
|
||||
REDIS_ENABLED = os.environ.get('REDIS_ENABLED')
|
||||
|
||||
CSV_UPLOAD_BUCKET_NAME = 'local-notifications-csv-upload'
|
||||
CONTACT_LIST_BUCKET_NAME = 'local-contact-list'
|
||||
@@ -554,7 +554,7 @@ class Live(Config):
|
||||
CRONITOR_ENABLED = True
|
||||
|
||||
# DEBUG = True
|
||||
REDIS_ENABLED = True
|
||||
REDIS_ENABLED = os.environ.get('REDIS_ENABLED')
|
||||
|
||||
NOTIFY_LOG_PATH = os.environ.get('NOTIFY_LOG_PATH', 'application.log')
|
||||
REDIS_URL = os.environ.get('REDIS_URL')
|
||||
|
||||
Reference in New Issue
Block a user