chore: use frappe._dev_server

This commit is contained in:
Sagar Vora 2025-06-17 14:26:17 +05:30
parent 482020552c
commit b7fb654688

View file

@ -7,7 +7,7 @@ UI_TEST_USER = "frappe@example.com"
def whitelist_for_tests(fn):
if frappe.request and not frappe.flags.in_test and not getattr(frappe.local, "dev_server", 0):
if frappe.request and not frappe.flags.in_test and not frappe._dev_server:
frappe.throw("Cannot run UI tests. Use a development server with `bench start`")
return frappe.whitelist()(fn)