From 958bb6c6197e147fef051a13525bb9279b6efaa7 Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Mon, 23 Mar 2026 21:09:14 +0530 Subject: [PATCH] chore: skip semgrep check for `db.commit` in `BootStrapTestData` (#53715) --- erpnext/tests/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/tests/utils.py b/erpnext/tests/utils.py index 551fe8017aa..9485eb9af42 100644 --- a/erpnext/tests/utils.py +++ b/erpnext/tests/utils.py @@ -190,7 +190,7 @@ class BootStrapTestData: if not frappe.db.exists("Supplier Scorecard Standing", {"name": x.get("standing_name")}): frappe.get_doc(x).insert() - frappe.db.commit() + frappe.db.commit() # nosemgrep def make_master_data(self): self.make_fiscal_year() @@ -244,7 +244,7 @@ class BootStrapTestData: self.update_stock_settings() self.update_system_settings() - frappe.db.commit() + frappe.db.commit() # nosemgrep # custom doctype # DDL commands have implicit commit