tests_configs.ini 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. preview.jpg.restricted_dims = True
  70. email.notification.activated = false
  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. preview.jpg.restricted_dims = True
  78. email.notification.activated = false
  79. [functional_test_with_mail_test_sync]
  80. sqlalchemy.url = sqlite:///tracim_test.sqlite
  81. depot_storage_name = test
  82. depot_storage_dir = /tmp/test/depot
  83. user.auth_token.validity = 604800
  84. preview_cache_dir = /tmp/test/preview_cache
  85. preview.jpg.restricted_dims = True
  86. email.notification.activated = true
  87. email.notification.from.email = test_user_from+{user_id}@localhost
  88. email.notification.from.default_label = Tracim Notifications
  89. email.notification.reply_to.email = test_user_reply+{content_id}@localhost
  90. email.notification.references.email = test_user_refs+{content_id}@localhost
  91. email.notification.content_update.template.html = %(here)s/tracim_backend/templates/mail/content_update_body_html.mak
  92. email.notification.content_update.template.text = %(here)s/tracim_backend/templates/mail/content_update_body_text.mak
  93. email.notification.created_account.template.html = %(here)s/tracim_backend/templates/mail/created_account_body_html.mak
  94. email.notification.created_account.template.text = %(here)s/tracim_backend/templates/mail/created_account_body_text.mak
  95. email.notification.content_update.subject = [{website_title}] [{workspace_label}] {content_label} ({content_status_label})
  96. email.notification.created_account.subject = [{website_title}] Created account
  97. email.notification.processing_mode = sync
  98. email.notification.smtp.server = 127.0.0.1
  99. email.notification.smtp.port = 1025
  100. email.notification.smtp.user = test_user
  101. email.notification.smtp.password = just_a_password
  102. [functional_test_with_mail_test_async]
  103. sqlalchemy.url = sqlite:///tracim_test.sqlite
  104. depot_storage_name = test
  105. depot_storage_dir = /tmp/test/depot
  106. user.auth_token.validity = 604800
  107. preview_cache_dir = /tmp/test/preview_cache
  108. preview.jpg.restricted_dims = True
  109. email.notification.activated = true
  110. email.notification.from.email = test_user_from+{user_id}@localhost
  111. email.notification.from.default_label = Tracim Notifications
  112. email.notification.reply_to.email = test_user_reply+{content_id}@localhost
  113. email.notification.references.email = test_user_refs+{content_id}@localhost
  114. email.notification.content_update.template.html = %(here)s/tracim_backend/templates/mail/content_update_body_html.mak
  115. email.notification.content_update.template.text = %(here)s/tracim_backend/templates/mail/content_update_body_text.mak
  116. email.notification.created_account.template.html = %(here)s/tracim_backend/templates/mail/created_account_body_html.mak
  117. email.notification.created_account.template.text = %(here)s/tracim_backend/templates/mail/created_account_body_text.mak
  118. email.notification.content_update.subject = [{website_title}] [{workspace_label}] {content_label} ({content_status_label})
  119. email.notification.created_account.subject = [{website_title}] Created account
  120. email.notification.processing_mode = async
  121. email.notification.smtp.server = 127.0.0.1
  122. email.notification.smtp.port = 1025
  123. email.notification.smtp.user = test_user
  124. email.notification.smtp.password = just_a_password