mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Set MAIL_SERVER during testing to use the TESTING_MAIL_SERVER envvar (#1709)
* Override the `MAIL_SERVER` config with the `TESTING_MAIL_SERVER` envvar during tests
This commit is contained in:
@@ -210,6 +210,7 @@ class TestingConfig(ServerConfig):
|
|||||||
TESTING = True
|
TESTING = True
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
SQLALCHEMY_DATABASE_URI = os.getenv("TESTING_DATABASE_URL") or "sqlite://"
|
SQLALCHEMY_DATABASE_URI = os.getenv("TESTING_DATABASE_URL") or "sqlite://"
|
||||||
|
MAIL_SERVER = os.getenv("TESTING_MAIL_SERVER")
|
||||||
SERVER_NAME = "localhost"
|
SERVER_NAME = "localhost"
|
||||||
UPDATE_CHECK = False
|
UPDATE_CHECK = False
|
||||||
REDIS_URL = None
|
REDIS_URL = None
|
||||||
|
|||||||
Reference in New Issue
Block a user