We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5c1561 commit ed9465dCopy full SHA for ed9465d
sendgrid/helpers/mail/mail.py
@@ -33,7 +33,7 @@ def __init__(
33
self.add_content(content)
34
35
def __str__(self):
36
- self.get()
+ return str(self.get())
37
38
def get(self):
39
"""
test/test_mail.py
@@ -65,6 +65,8 @@ def test_helloEmail(self):
65
'"subject": "Hello World from the SendGrid Python Library"}'
66
)
67
68
+ self.assertTrue(isinstance(str(mail), str))
69
+
70
def test_kitchenSink(self):
71
self.maxDiff = None
72
0 commit comments