testing.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. """
  2. flaskbb.configs.testing
  3. ~~~~~~~~~~~~~~~~~~~~
  4. This is the FlaskBB's testing config.
  5. :copyright: (c) 2014 by the FlaskBB Team.
  6. :license: BSD, see LICENSE for more details.
  7. """
  8. from flaskbb.configs.default import DefaultConfig
  9. class TestingConfig(DefaultConfig):
  10. # Indicates that it is a testing environment
  11. DEBUG = False
  12. TESTING = True
  13. # SQLAlchemy connection options
  14. # This will create in the applications folder (where manage.py is)
  15. # a database named flaskbb.sqlite.
  16. SQLALCHEMY_DATABASE_URI = (
  17. 'sqlite:///' + DefaultConfig._basedir + '/' + 'flaskbb_testing.sqlite'
  18. )
  19. # This will print all SQL statements
  20. SQLALCHEMY_ECHO = False
  21. # Security
  22. SECRET_KEY = "SecretKeyForSessionSigning"
  23. WTF_CSRF_ENABLED = True
  24. WTF_CSRF_SECRET_KEY = "reallyhardtoguess"
  25. # Recaptcha
  26. # To get recaptcha, visit the link below:
  27. # https://www.google.com/recaptcha/admin/create
  28. # Those keys are only going to work on localhost!
  29. RECAPTCHA_ENABLED = True
  30. RECAPTCHA_USE_SSL = False
  31. RECAPTCHA_PUBLIC_KEY = "6LcZB-0SAAAAAGIddBuSFU9aBpHKDa16p5gSqnxK"
  32. RECAPTCHA_PRIVATE_KEY = "6LcZB-0SAAAAAPuPHhazscMJYa2mBe7MJSoWXrUu"
  33. RECAPTCHA_OPTIONS = {"theme": "white"}
  34. # Mail
  35. # Local SMTP Server
  36. #MAIL_SERVER = "localhost"
  37. #MAIL_PORT = 25
  38. #MAIL_USE_SSL = False
  39. #MAIL_USERNAME = ""
  40. #MAIL_PASSWORD = ""
  41. #MAIL_DEFAULT_SENDER = "noreply@example.org"
  42. # Google Mail Example
  43. MAIL_SERVER = "smtp.gmail.com"
  44. MAIL_PORT = 465
  45. MAIL_USE_SSL = True
  46. MAIL_USERNAME = "your_username@gmail.com"
  47. MAIL_PASSWORD = "your_password"
  48. MAIL_DEFAULT_SENDER = ("Your Name", "your_username@gmail.com")
  49. # The user who should recieve the error logs
  50. ADMINS = ["your_admin_user@gmail.com"]