fix in test sending of newsletter
diff --git a/support/doctype/newsletter/newsletter.py b/support/doctype/newsletter/newsletter.py
index 8bdbc34..78921f1 100644
--- a/support/doctype/newsletter/newsletter.py
+++ b/support/doctype/newsletter/newsletter.py
@@ -28,7 +28,7 @@
def test_send(self, doctype="Lead"):
self.recipients = self.doc.test_email_id.split(",")
- self.send_to_doctype = "Email"
+ self.send_to_doctype = "Lead"
self.send_bulk()
webnotes.msgprint("""Scheduled to send to %s""" % self.doc.test_email_id)
@@ -76,7 +76,7 @@
if not webnotes.conn.exists({"doctype": "Lead", "email_id": email}):
create_lead(email)
- self.send_to_doctype = "Email"
+ self.send_to_doctype = "Lead"
return email_list
def send_bulk(self):