We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b51522d + 2125d36 commit 01f676dCopy full SHA for 01f676d
sendgrid/helpers/mail/personalization.py
@@ -116,7 +116,7 @@ def substitutions(self):
116
117
@substitutions.setter
118
def substitutions(self, value):
119
- self.substitutions = value
+ self._substitutions = value
120
121
def add_substitution(self, substitution):
122
"""Add a new Substitution to this Personalization.
test/test_mail.py
@@ -558,3 +558,7 @@ def test_disable_tracking(self):
558
tracking_settings.get(),
559
{'click_tracking': {'enable': False, 'enable_text': False}}
560
)
561
+
562
+ def test_directly_setting_substitutions(self):
563
+ personalization = Personalization()
564
+ personalization.substitutions = [{'a': 0}]
0 commit comments