Save domain settings to create related custom fields for already enabled domain (#4378)

* Save domain settings to create related custom fields for already enabled domain

* Remove all domains from active domains after running test cases
This commit is contained in:
Nabin Hait 2017-10-27 15:26:02 +05:30 committed by Rushabh Mehta
parent 39d831bc23
commit 80c63bb226
2 changed files with 3 additions and 1 deletions

View file

@ -194,4 +194,5 @@ frappe.patches.v8_x.update_user_permission
frappe.patches.v8_5.patch_event_colors
frappe.patches.v8_10.delete_static_web_page_from_global_search
frappe.patches.v8_x.add_bgn_xaf_xof_currencies
frappe.patches.v9_1.add_sms_sender_name_as_parameters
frappe.patches.v9_1.add_sms_sender_name_as_parameters
execute:frappe.get_single('Domain Settings').save()

View file

@ -23,6 +23,7 @@ class TestDomainification(unittest.TestCase):
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')
self.remove_from_active_domains(remove_all=True)
def add_active_domain(self, domain):
""" add domain in active domain """