chore: use frappe.in_test

This commit is contained in:
Sagar Vora
2025-06-17 21:28:21 +05:30
parent 153a70cd70
commit 7a482a6998
31 changed files with 48 additions and 48 deletions

View File

@@ -112,7 +112,7 @@ class Task(NestedSet):
)
def validate_parent_project_dates(self):
if not self.project or frappe.flags.in_test:
if not self.project or frappe.in_test:
return
if project_end_date := frappe.db.get_value("Project", self.project, "expected_end_date"):