summaryrefslogtreecommitdiff
path: root/addons/link_tracker
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-05-26 09:50:51 +0000
committerThibault Delavallée <tde@odoo.com>2020-05-26 10:35:58 +0000
commite8b1e2b7e448e0e29ca75c1585814788345c643b (patch)
tree4c9253613b7abe12699cac169850b15a7687dca1 /addons/link_tracker
parentc13c3318b2eb32366fe342edb934461c4efbffcd (diff)
[IMP] sms, link_tracker: clean some test helpers and add an helper to click SMS links
Clean some helpers, and add a helper to simulata a click on a shortened link embedded in an SMS. Task ID 2247037 Community PR #50384
Diffstat (limited to 'addons/link_tracker')
-rw-r--r--addons/link_tracker/tests/common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/link_tracker/tests/common.py b/addons/link_tracker/tests/common.py
index 16fe77aabce..2d4c651dcd4 100644
--- a/addons/link_tracker/tests/common.py
+++ b/addons/link_tracker/tests/common.py
@@ -31,10 +31,10 @@ class MockLinkTracker(common.BaseCase):
])
return code.link_id
- def assertLinkShortened(self, body, link_info, link_params=None):
- """ Usage
+ def assertLinkShortenedHtml(self, body, link_info, link_params=None):
+ """ Find shortened links in an HTML content. Usage :
- self.assertLinkShortened(
+ self.assertLinkShortenedHtml(
message.body,
('url0', 'http://www.odoo.com', True),
{'utm_campaign': self.utm_c.name, 'utm_medium': self.utm_m.name}