fix(tests): exception ID collision test does not force ID collision #250
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#250
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up for PR #177 (next-day settings activation, #114) addressing pass-4 review finding P3-3:
Scope
In
tests/test_next_day_settings_activation.py:1045(test_p1_cancelling_pending_exception_colliding_with_active_holiday_id_and_404),occupancy_pending_changesusesAUTOINCREMENT. Because previous test executions increment the autoincrement counter and table cleanup does not resetsqlite_sequence,pending_idis greater than 1 (e.g. 26). As a result, the test does not actually test a colliding ID againstoccupancy_holidays.id = 1.Acceptance Criteria
sqlite_sequenceor insert the active holiday withid = pending_id.holiday.id == pending_idto guarantee true ID collision during testing.Refs #177, #114.