diff --git a/frappe/commands.py b/frappe/commands.py index 1afdfe81d1..a10c7119ca 100644 --- a/frappe/commands.py +++ b/frappe/commands.py @@ -638,7 +638,7 @@ def run_tests(context, app=None, module=None, doctype=None, test=(), driver=None pass # sel.close() - return ret + sys.exit(ret) @click.command('serve') @click.option('--port', default=8000) diff --git a/frappe/email/doctype/bulk_email/bulk_email.json b/frappe/email/doctype/bulk_email/bulk_email.json index 4766d52073..37be147dce 100644 --- a/frappe/email/doctype/bulk_email/bulk_email.json +++ b/frappe/email/doctype/bulk_email/bulk_email.json @@ -64,13 +64,14 @@ "icon": "icon-envelope", "idx": 1, "in_create": 1, - "modified": "2015-03-19 05:36:16.813340", + "modified": "2015-03-31 15:10:57.553836", "modified_by": "Administrator", "module": "Email", "name": "Bulk Email", "owner": "Administrator", "permissions": [ { + "delete": 1, "email": 1, "permlevel": 0, "print": 1, diff --git a/frappe/email/doctype/email_account/email_account.py b/frappe/email/doctype/email_account/email_account.py index 488a2f3757..5cdd62beb0 100644 --- a/frappe/email/doctype/email_account/email_account.py +++ b/frappe/email/doctype/email_account/email_account.py @@ -252,7 +252,7 @@ def notify_unreplied(): "unread_notification_sent": 0, "creation": ("<", datetime.now() - timedelta(seconds = (email_account.unreplied_for_mins or 30) * 60)), "creation": (">", datetime.now() - timedelta(seconds = (email_account.unreplied_for_mins or 30) * 60 * 3)) - }, debug=True): + }): comm = frappe.get_doc("Communication", comm.name) if frappe.db.get_value(comm.reference_doctype, comm.reference_name, "status")=="Open":