summaryrefslogtreecommitdiff
path: root/addons/sms/tests/__init__.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2019-05-21 10:40:09 +0000
committerThibault Delavallée <tde@odoo.com>2019-07-02 10:44:56 +0000
commit20c10fcd19b67cc70b64be0ee81f0582e67a1eba (patch)
tree8f842902df543a10b5191dbda255a6efe9df3f60 /addons/sms/tests/__init__.py
parentdb177636540e632010bf5eebcd314b4c2f6960d3 (diff)
[ADD] sms, test_mail(_full): add basic SMS tests and improve test tools
Purpose of this commit is to improve and add tools, methods and data to test mail and SMS features. We also add tests for current implementation of SMS feature, allowing to better understand future changes. [ADD] test_mail_full * have a module depending on mail sub-applications like sms or snailmail. Its purpose is to check that standard mail features work effectively with all overrides and extra behaviors activated; * add a new model specific for SMS gateway, with default recipient computation; * add SMS tests for SMS module adding SMS capabilities linked to mail feature. This commit tests SMS feature before the upcoming refactoring and improvement of SMS module in community: posting with SMS and sms composer usage; In test_mail * add necessary mobile information on test partners; * improve assertBusNotification that was not correctly asserting all items in message of bus notifications; In sms * add mock for SMS sending. Purpose is to mock the connection to IAP services by mocking the call to IAP server. It allows to perform SMS tests without having to contact (and pay) for this service; * allow some customization when calling the SMS gateway mock to simulate errors and test corner cases; Related to task 1922163 Linked to PR #34516
Diffstat (limited to 'addons/sms/tests/__init__.py')
-rw-r--r--addons/sms/tests/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/sms/tests/__init__.py b/addons/sms/tests/__init__.py
new file mode 100644
index 00000000000..511e649c9e2
--- /dev/null
+++ b/addons/sms/tests/__init__.py
@@ -0,0 +1,4 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from . import common