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

@@ -229,7 +229,7 @@ class StockController(AccountsController):
return
# To handle test cases
if frappe.flags.in_test and frappe.flags.use_serial_and_batch_fields:
if frappe.in_test and frappe.flags.use_serial_and_batch_fields:
return
if not table_name: