[minor] dont check developer mode in test
This commit is contained in:
parent
281d8a6481
commit
9cd262c0c5
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class DocType(Document):
|
|||
|
||||
def check_developer_mode(self):
|
||||
"""Throw exception if not developer mode or via patch"""
|
||||
if frappe.flags.in_patch:
|
||||
if frappe.flags.in_patch or frappe.flags.in_test:
|
||||
return
|
||||
|
||||
if not frappe.conf.get("developer_mode") and not self.custom:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue