mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-17 08:28:44 +00:00
test: assert the saved closing entry exists rather than a truthy name
This commit is contained in:
@@ -87,5 +87,5 @@ class TestStockClosingEntryDuplicate(ERPNextTestSuite):
|
||||
def test_non_overlapping_range_is_allowed(self):
|
||||
self.submit_closing(self.make_closing("2026-01-01", "2026-03-31"))
|
||||
later = self.make_closing("2026-04-01", "2026-06-30")
|
||||
later.insert()
|
||||
self.assertTrue(later.name)
|
||||
later.insert() # would raise if validate_duplicate wrongly flagged it as overlapping
|
||||
self.assertTrue(frappe.db.exists("Stock Closing Entry", later.name))
|
||||
|
||||
Reference in New Issue
Block a user