14 Commits

Author SHA1 Message Date
Ross 935b4baaba Add ignore_dates field to worker constraints and implement related tests 2026-05-19 21:31:05 +01:00
Ross dee80ed4fa Add constraints for maximum days and unique shifts per week block in worker model 2026-05-19 21:23:09 +01:00
Ross eb95f5fa6d . 2025-12-09 11:55:00 +00:00
Ross 76f3b48c1d Refactor shift constraints in tests to use new constraint classes
- Updated test cases in `test_workers.py` to replace dictionary-based constraints with instances of `PreShiftConstraint`, `PostShiftConstraint`, and `MaxShiftsPerWeekConstraint`.
- Added a new test `test_worker_assign_as_block_preference2` to verify worker preferences for block assignments.
- Marked tests as slow where appropriate to improve test suite performance.
2025-08-11 13:03:08 +01:00
Ross e46c24df88 add custom display char for shift 2025-06-05 21:59:26 +01:00
Ross 242a664f49 ... 2025-01-25 08:49:14 +00:00
Ross 7ce4677921 add worker requirements 2025-01-01 21:58:48 +00:00
Ross f0b9ee0ebc start working on shift paring balancing 2024-12-26 16:39:04 +00:00
Ross 1ed5f4fbcd work towards paring of shifts 2024-12-24 10:41:46 +00:00
Ross 70dc279a02 update from last round 2024-12-23 16:56:53 +00:00
Ross 8b7af25238 . 2022-07-13 19:30:14 +01:00
Ross dc975b991c many improvements 2022-07-11 19:46:40 +01:00
Ross c9ba2a098c start pydanitification 2022-05-26 15:38:35 +01:00
Ross a8cf3e3460 further tests and fixes 2022-05-18 17:20:28 +01:00