forked from gergely/calendar-social
Create a testing configuration
From now on, testing should be done with FLASK_ENV set to testing
This commit is contained in:
parent
bc67e692e0
commit
490474b2d6
1
.env.testing
Normal file
1
.env.testing
Normal file
@ -0,0 +1 @@
|
||||
FLASK_ENV=testing
|
18
calsocial/config_testing.py
Normal file
18
calsocial/config_testing.py
Normal file
@ -0,0 +1,18 @@
|
||||
"""Configuration file for the development environment
|
||||
"""
|
||||
|
||||
ENV = 'testing'
|
||||
#: If ``True``, registration on the site is enabled.
|
||||
REGISTRATION_ENABLED = True
|
||||
#: The default time zone
|
||||
DEFAULT_TIMEZONE = 'Europe/Budapest'
|
||||
|
||||
DEBUG = False
|
||||
TESTING=True
|
||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///'
|
||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||
SECRET_KEY = 'WeAreTesting'
|
||||
SECURITY_PASSWORD_HASH = 'bcrypt'
|
||||
SECURITY_PASSWORD_SALT = SECRET_KEY
|
||||
SECURITY_REGISTERABLE = False
|
||||
CACHE_TYPE = 'simple'
|
Loading…
Reference in New Issue
Block a user