Browse Source

Delete role from HasRole table on teardown of test_domainification

version-14
Nabin Hait 7 years ago
parent
commit
d48ab277c3
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      frappe/tests/test_domainification.py

+ 1
- 0
frappe/tests/test_domainification.py View File

@@ -20,6 +20,7 @@ class TestDomainification(unittest.TestCase):

def tearDown(self):
frappe.db.sql("delete from tabRole where name='_Test Role'")
frappe.db.sql("delete from `tabHas Role` where role='_Test Role'")
frappe.db.sql("delete from tabDomain where name in ('_Test Domain 1', '_Test Domain 2')")
frappe.delete_doc('DocType', 'Test Domainification')



Loading…
Cancel
Save