testing.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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://'
  18. )
  19. SERVER_NAME = "localhost:5000"
  20. # This will print all SQL statements
  21. SQLALCHEMY_ECHO = False
  22. # Security
  23. SECRET_KEY = "SecretKeyForSessionSigning"
  24. WTF_CSRF_ENABLED = True
  25. WTF_CSRF_SECRET_KEY = "reallyhardtoguess"
  26. # Recaptcha
  27. # To get recaptcha, visit the link below:
  28. # https://www.google.com/recaptcha/admin/create
  29. # Those keys are only going to work on localhost!
  30. RECAPTCHA_ENABLED = True
  31. RECAPTCHA_USE_SSL = False
  32. RECAPTCHA_PUBLIC_KEY = "6LcZB-0SAAAAAGIddBuSFU9aBpHKDa16p5gSqnxK"
  33. RECAPTCHA_PRIVATE_KEY = "6LcZB-0SAAAAAPuPHhazscMJYa2mBe7MJSoWXrUu"
  34. RECAPTCHA_OPTIONS = {"theme": "white"}
  35. # Mail
  36. # Local SMTP Server
  37. #MAIL_SERVER = "localhost"
  38. #MAIL_PORT = 25
  39. #MAIL_USE_SSL = False
  40. #MAIL_USERNAME = ""
  41. #MAIL_PASSWORD = ""
  42. #MAIL_DEFAULT_SENDER = "noreply@example.org"
  43. # Google Mail Example
  44. MAIL_SERVER = "smtp.gmail.com"
  45. MAIL_PORT = 465
  46. MAIL_USE_SSL = True
  47. MAIL_USERNAME = "your_username@gmail.com"
  48. MAIL_PASSWORD = "your_password"
  49. MAIL_DEFAULT_SENDER = ("Your Name", "your_username@gmail.com")
  50. # The user who should recieve the error logs
  51. ADMINS = ["your_admin_user@gmail.com"]