start working on shift paring balancing
This commit is contained in:
+5
-1
@@ -598,7 +598,11 @@ class TestDemoRotaBalanceShiftSites:
|
||||
self.Rota.constraint_options["balance_nights"] = False
|
||||
self.Rota.constraint_options["constrain_time_off_after_nights"] = False
|
||||
|
||||
self.Rota.terminate_on_warning.remove("Worker/no valid shifts")
|
||||
try:
|
||||
self.Rota.terminate_on_warning.remove("Worker/no valid shifts")
|
||||
except ValueError:
|
||||
# Seems to happen with sequential test running
|
||||
pass
|
||||
self.Rota.build_and_solve(options={"ratio": 0.1})
|
||||
|
||||
group_workers = self.Rota.get_workers_by_group()
|
||||
|
||||
Reference in New Issue
Block a user