Browse Source

Simplify testing config

Peter Justin 8 years ago
parent
commit
6435ff18df
1 changed files with 1 additions and 27 deletions
  1. 1 27
      flaskbb/configs/testing.py

+ 1 - 27
flaskbb/configs/testing.py

@@ -16,9 +16,6 @@ class TestingConfig(DefaultConfig):
     DEBUG = False
     DEBUG = False
     TESTING = True
     TESTING = True
 
 
-    # SQLAlchemy connection options
-    # This will create in the applications folder (where manage.py is)
-    # a database named flaskbb.sqlite.
     SQLALCHEMY_DATABASE_URI = (
     SQLALCHEMY_DATABASE_URI = (
         'sqlite://'
         'sqlite://'
     )
     )
@@ -28,11 +25,6 @@ class TestingConfig(DefaultConfig):
     # This will print all SQL statements
     # This will print all SQL statements
     SQLALCHEMY_ECHO = False
     SQLALCHEMY_ECHO = False
 
 
-    # Security
-    SECRET_KEY = "SecretKeyForSessionSigning"
-    WTF_CSRF_ENABLED = True
-    WTF_CSRF_SECRET_KEY = "reallyhardtoguess"
-
     # Recaptcha
     # Recaptcha
     # To get recaptcha, visit the link below:
     # To get recaptcha, visit the link below:
     # https://www.google.com/recaptcha/admin/create
     # https://www.google.com/recaptcha/admin/create
@@ -43,27 +35,9 @@ class TestingConfig(DefaultConfig):
     RECAPTCHA_PRIVATE_KEY = "6LcZB-0SAAAAAPuPHhazscMJYa2mBe7MJSoWXrUu"
     RECAPTCHA_PRIVATE_KEY = "6LcZB-0SAAAAAPuPHhazscMJYa2mBe7MJSoWXrUu"
     RECAPTCHA_OPTIONS = {"theme": "white"}
     RECAPTCHA_OPTIONS = {"theme": "white"}
 
 
-    # Mail
-    # Local SMTP Server
-    #MAIL_SERVER = "localhost"
-    #MAIL_PORT = 25
-    #MAIL_USE_SSL = False
-    #MAIL_USERNAME = ""
-    #MAIL_PASSWORD = ""
-    #MAIL_DEFAULT_SENDER = "noreply@example.org"
-
-    # Google Mail Example
-    MAIL_SERVER = "smtp.gmail.com"
-    MAIL_PORT = 465
-    MAIL_USE_SSL = True
-    MAIL_USERNAME = "your_username@gmail.com"
-    MAIL_PASSWORD = "your_password"
-    MAIL_DEFAULT_SENDER = ("Your Name", "your_username@gmail.com")
+    WHOOSHEE_MEMORY_STORAGE = True
 
 
     CELERY_ALWAYS_EAGER = True
     CELERY_ALWAYS_EAGER = True
     CELERY_RESULT_BACKEND = "cache"
     CELERY_RESULT_BACKEND = "cache"
     CELERY_CACHE_BACKEND = "memory"
     CELERY_CACHE_BACKEND = "memory"
     CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
     CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
-
-    # The user who should recieve the error logs
-    ADMINS = ["your_admin_user@gmail.com"]