test(fusion_clock): update tests for dropped unique + overnight; fix leave reason
test_unique_employee_date_schedule -> test_multiple_shifts_per_day_allowed; test_invalid_same_day_range_is_rejected -> test_overnight_range_is_accepted; add required reason to the recurrence leave-skip test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -73,7 +73,7 @@ class TestRecurrence(TransactionCase):
|
||||
|
||||
def test_leave_day_skipped(self):
|
||||
self.env['fusion.clock.leave.request'].create({
|
||||
'employee_id': self.emp.id,
|
||||
'employee_id': self.emp.id, 'reason': 'Vacation',
|
||||
'leave_date': date(2026, 6, 8), 'date_to': date(2026, 6, 8)})
|
||||
seed = self._seed(date(2026, 6, 1))
|
||||
rule = self.Schedule.fclk_attach_recurrence(seed, {
|
||||
|
||||
Reference in New Issue
Block a user