From 490474b2d614c0161fd78d046d96f11891ace10e Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 25 Jul 2018 20:26:40 +0200 Subject: [PATCH] Create a testing configuration From now on, testing should be done with FLASK_ENV set to testing --- .env.testing | 1 + calsocial/config_testing.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .env.testing create mode 100644 calsocial/config_testing.py diff --git a/.env.testing b/.env.testing new file mode 100644 index 0000000..a9f5552 --- /dev/null +++ b/.env.testing @@ -0,0 +1 @@ +FLASK_ENV=testing diff --git a/calsocial/config_testing.py b/calsocial/config_testing.py new file mode 100644 index 0000000..0580273 --- /dev/null +++ b/calsocial/config_testing.py @@ -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'