test: Fix flaky test

- Due to improper cleanup one of the test of Energy Point was failing
This commit is contained in:
Suraj Shetty 2021-10-08 09:39:31 +05:30
parent efdd267cd5
commit 3a004d38db

View file

@ -274,4 +274,7 @@ class TestNotification(unittest.TestCase):
self.assertTrue('test2@example.com' in recipients)
self.assertTrue('test1@example.com' in recipients)
@classmethod
def tearDownClass(cls):
frappe.delete_doc_if_exists("Notification", "ToDo Status Update")
frappe.delete_doc_if_exists("Notification", "Contact Status Update")