test: Reset current user as admin in teardown
This commit is contained in:
parent
355b8e3868
commit
9ef406bf31
1 changed files with 1 additions and 0 deletions
|
|
@ -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`')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue