tests_configs.ini 3.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. [base_test]
  2. sqlalchemy.url = sqlite:///:memory:
  3. depot_storage_name = test
  4. depot_storage_dir = /tmp/test/depot
  5. user.auth_token.validity = 604800
  6. preview_cache_dir = /tmp/test/preview_cache
  7. [app:command_test]
  8. use = egg:tracim_backend
  9. sqlalchemy.url = sqlite:///tracim_test.sqlite
  10. depot_storage_name = test
  11. depot_storage_dir = /tmp/test/depot
  12. user.auth_token.validity = 604800
  13. preview_cache_dir = /tmp/test/preview_cache
  14. [mail_test]
  15. sqlalchemy.url = sqlite:///:memory:
  16. depot_storage_name = test
  17. depot_storage_dir = /tmp/test/depot
  18. user.auth_token.validity = 604800
  19. preview_cache_dir = /tmp/test/preview_cache
  20. email.notification.activated = true
  21. email.notification.from.email = test_user_from+{user_id}@localhost
  22. email.notification.from.default_label = Tracim Notifications
  23. email.notification.reply_to.email = test_user_reply+{content_id}@localhost
  24. email.notification.references.email = test_user_refs+{content_id}@localhost
  25. email.notification.content_update.template.html = %(here)s/tracim_backend/templates/mail/content_update_body_html.mak
  26. email.notification.content_update.template.text = %(here)s/tracim_backend/templates/mail/content_update_body_text.mak
  27. email.notification.created_account.template.html = %(here)s/tracim_backend/templates/mail/created_account_body_html.mak
  28. email.notification.created_account.template.text = %(here)s/tracim_backend/templates/mail/created_account_body_text.mak
  29. # Note: items between { and } are variable names. Do not remove / rename them
  30. email.notification.content_update.subject = [{website_title}] [{workspace_label}] {content_label} ({content_status_label})
  31. email.notification.created_account.subject = [{website_title}] Created account
  32. # processing_mode may be sync or async
  33. email.notification.processing_mode = sync
  34. email.notification.smtp.server = 127.0.0.1
  35. email.notification.smtp.port = 1025
  36. email.notification.smtp.user = test_user
  37. email.notification.smtp.password = just_a_password
  38. [mail_test_async]
  39. sqlalchemy.url = sqlite:///:memory:
  40. depot_storage_name = test
  41. depot_storage_dir = /tmp/test/depot
  42. user.auth_token.validity = 604800
  43. preview_cache_dir = /tmp/test/preview_cache
  44. email.notification.activated = true
  45. email.notification.from.email = test_user_from+{user_id}@localhost
  46. email.notification.from.default_label = Tracim Notifications
  47. email.notification.reply_to.email = test_user_reply+{content_id}@localhost
  48. email.notification.references.email = test_user_refs+{content_id}@localhost
  49. email.notification.content_update.template.html = %(here)s/tracim_backend/templates/mail/content_update_body_html.mak
  50. email.notification.content_update.template.text = %(here)s/tracim_backend/templates/mail/content_update_body_text.mak
  51. email.notification.created_account.template.html = %(here)s/tracim_backend/templates/mail/created_account_body_html.mak
  52. email.notification.created_account.template.text = %(here)s/tracim_backend/templates/mail/created_account_body_text.mak
  53. # Note: items between { and } are variable names. Do not remove / rename them
  54. email.notification.content_update.subject = [{website_title}] [{workspace_label}] {content_label} ({content_status_label})
  55. email.notification.created_account.subject = [{website_title}] Created account
  56. # processing_mode may be sync or async
  57. email.notification.processing_mode = sync
  58. email.processing_mode = async
  59. email.notification.smtp.server = 127.0.0.1
  60. email.notification.smtp.port = 1025
  61. email.notification.smtp.user = test_user
  62. email.notification.smtp.password = just_a_password
  63. [functional_test]
  64. sqlalchemy.url = sqlite:///tracim_test.sqlite
  65. depot_storage_name = test
  66. depot_storage_dir = /tmp/test/depot
  67. user.auth_token.validity = 604800
  68. preview_cache_dir = /tmp/test/preview_cache
  69. email.notification.activated = false
  70. preview.jpg.restricted_dims = True
  71. [functional_test_no_db]
  72. sqlalchemy.url = sqlite://
  73. depot_storage_name = test
  74. depot_storage_dir = /tmp/test/depot
  75. user.auth_token.validity = 604800
  76. preview_cache_dir = /tmp/test/preview_cache
  77. email.notification.activated = false
  78. preview.jpg.restricted_dims = True