fix: test case
diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py
index e508b90..cd076d8 100644
--- a/erpnext/stock/doctype/stock_entry/stock_entry.py
+++ b/erpnext/stock/doctype/stock_entry/stock_entry.py
@@ -187,6 +187,9 @@
 		if force:
 			return True
 
+		if frappe.flags.in_test:
+			return False
+
 		# If line items are more than 100 or record is older than 6 months
 		if len(self.items) > 100 or month_diff(nowdate(), self.posting_date) > 6:
 			return True
diff --git a/erpnext/stock/doctype/stock_entry/test_stock_entry.py b/erpnext/stock/doctype/stock_entry/test_stock_entry.py
index 9a748ab..de74fda 100644
--- a/erpnext/stock/doctype/stock_entry/test_stock_entry.py
+++ b/erpnext/stock/doctype/stock_entry/test_stock_entry.py
@@ -1708,6 +1708,7 @@
 		self.assertRaises(frappe.ValidationError, sr_doc.submit)
 
 	def test_enqueue_action(self):
+		frappe.flags.in_test = False
 		item_code = "Test Enqueue Item - 001"
 		create_item(item_code=item_code, is_stock_item=1, valuation_rate=10)
 
@@ -1734,6 +1735,7 @@
 		)
 
 		self.assertFalse(doc.is_enqueue_action())
+		frappe.flags.in_test = True
 
 
 def make_serialized_item(**args):