test(query): remove manual commit from test

This commit is contained in:
Kaushal Shriwas 2026-03-26 12:45:05 +05:30
parent 6281eac44a
commit c8ce8cdc23

View file

@ -552,9 +552,6 @@ class TestOperatorIn(IntegrationTestCase):
self.test_doctype_name = test_doctype.name
self.addCleanup(frappe.delete_doc, "DocType", self.test_doctype_name)
frappe.db.sql(f"DELETE FROM `tab{self.test_doctype_name}`")
frappe.db.commit()
doc_null = frappe.get_doc({"doctype": self.test_doctype_name, "test_field": None})
doc_null.insert()
doc_empty = frappe.get_doc({"doctype": self.test_doctype_name, "test_field": ""})