test: Reset current user as admin in teardown

This commit is contained in:
Suraj Shetty 2019-03-28 07:38:11 +05:30
parent 355b8e3868
commit 9ef406bf31

View file

@ -10,6 +10,7 @@ from frappe.utils.testutils import add_custom_field, clear_custom_fields
class TestEnergyPointLog(unittest.TestCase):
def tearDown(self):
frappe.set_user('Administrator')
frappe.db.sql('DELETE FROM `tabEnergy Point Log`')
frappe.db.sql('DELETE FROM `tabEnergy Point Rule`')