mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 06:24:23 +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
|
||||
DEBUG = True
|
||||
SQLALCHEMY_DATABASE_URI = os.getenv("TESTING_DATABASE_URL") or "sqlite://"
|
||||
MAIL_SERVER = os.getenv("TESTING_MAIL_SERVER")
|
||||
SERVER_NAME = "localhost"
|
||||
UPDATE_CHECK = False
|
||||
REDIS_URL = None
|
||||
|
||||
Reference in New Issue
Block a user