fix bug with pre / post shift constraints

This commit is contained in:
Ross
2025-06-22 10:53:17 +01:00
parent fc3102ec47
commit 8402cc92fd
3 changed files with 381 additions and 40 deletions
+3 -2
View File
@@ -964,10 +964,11 @@ def test_worker_assign_as_block_preference_multiple_shifts():
),
)
shift_list_1 = Rota.get_worker_shift_list_string(worker1)
assert shift_list_1.count("aaaa") == 3, "Worker 1 should have all 'a' shifts grouped together (block)"
Rota.build_and_solve(options={"ratio": 0.0})
shift_list_1 = Rota.get_worker_shift_list_string(worker1)
assert shift_list_1.count("aaaa") == 3, "Worker 1 should have all 'a' shifts grouped together (block)"
Rota.export_rota_to_html("test_worker_assign_as_block_preference", folder="tests")
def test_worker_assign_as_block_preference_multiple_sites():