Skip to content

Commit b81f016

Browse files
author
João Luiz Lorencetti
committed
Add test to prevent a regression when disabling click tracking
1 parent 2fe809f commit b81f016

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/test_mail.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,3 +467,12 @@ def test_unicode_values_in_substitutions_helper(self):
467467
json.dumps(mail.get(), sort_keys=True),
468468
json.dumps(expected_result, sort_keys=True)
469469
)
470+
471+
def test_disable_tracking(self):
472+
tracking_settings = TrackingSettings()
473+
tracking_settings.click_tracking = ClickTracking(False, False)
474+
475+
self.assertEqual(
476+
tracking_settings.get(),
477+
{'click_tracking': {'enable': False, 'enable_text': False}}
478+
)

0 commit comments

Comments
 (0)