summaryrefslogtreecommitdiff
path: root/addons/sms/__init__.py
AgeCommit message (Collapse)Author
2020-07-16[FIX] *: do not import tests folderMartin Trigaux
The tests must be only imported in a test context, not in a running context. Since 92a7f8c13fa6bc84 a new test requirement was added but it should not be necessary to run a module, only to execute the tests. closes odoo/odoo#54578 X-original-commit: 15f2bbd40a70d9d9e969a2c75b7b9131c100dc09 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-02[ADD] sms, test_mail(_full): add basic SMS tests and improve test toolsThibault Delavallée
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
2017-10-04[ADD] sms: sms gateway using iapAntony Lesuisse