From 9c53a91b82a3ac213271e730b188b633a661f63c Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 2 Jul 2026 23:32:02 +0530 Subject: [PATCH] test: add simulate=True to draft timesheet for overlap safety --- .../test_timesheet_billing_summary.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/projects/report/timesheet_billing_summary/test_timesheet_billing_summary.py b/erpnext/projects/report/timesheet_billing_summary/test_timesheet_billing_summary.py index 5526d5db01c..c4ae6ecd9b3 100644 --- a/erpnext/projects/report/timesheet_billing_summary/test_timesheet_billing_summary.py +++ b/erpnext/projects/report/timesheet_billing_summary/test_timesheet_billing_summary.py @@ -54,7 +54,9 @@ class TestTimesheetBillingSummary(ERPNextTestSuite): self.assertEqual(group_rows[0]["hours"], 2) def test_draft_excluded_unless_requested(self): - ts = make_timesheet(self.employee, is_billable=1, project=self.project.name, do_not_submit=True) + ts = make_timesheet( + self.employee, simulate=True, is_billable=1, project=self.project.name, do_not_submit=True + ) # submitted-only by default: the draft timesheet is absent self.assertNotIn(ts.name, {r.get("timesheet") for r in self.run_report()})