update from last round
This commit is contained in:
+5
-5
@@ -142,7 +142,7 @@ class TestShiftConstraints:
|
||||
Rota.build_and_solve(options={"ratio": 0.000})
|
||||
Rota.export_rota_to_html("max_shifts_per_week_block")
|
||||
|
||||
assert Rota.results.solver.status == "warning"
|
||||
assert Rota.results.solver.status in ("warning", "error")
|
||||
|
||||
def test_max_shifts_per_week_block_shift_number(self):
|
||||
Rota = generate_basic_rota()
|
||||
@@ -172,7 +172,7 @@ class TestShiftConstraints:
|
||||
Rota.build_and_solve(options={"ratio": 0.000})
|
||||
Rota.export_rota_to_html("max_shifts_per_week_block")
|
||||
|
||||
assert Rota.results.solver.status == "warning"
|
||||
assert Rota.results.solver.status in ("warning", "error")
|
||||
|
||||
def test_pre_shift_constraint(self):
|
||||
Rota = generate_basic_rota()
|
||||
@@ -226,7 +226,7 @@ class TestShiftConstraints:
|
||||
|
||||
Rota.build_and_solve(options={"ratio": 0.000})
|
||||
|
||||
assert Rota.results.solver.status == "warning"
|
||||
assert Rota.results.solver.status in ("warning", "error")
|
||||
|
||||
def test_pre_shift_constraint2(self):
|
||||
Rota = generate_basic_rota()
|
||||
@@ -269,7 +269,7 @@ class TestShiftConstraints:
|
||||
Rota.build_and_solve(options={"ratio": 0.000})
|
||||
Rota.export_rota_to_html("pre")
|
||||
|
||||
assert Rota.results.solver.status == "warning"
|
||||
assert Rota.results.solver.status in ("warning", "error")
|
||||
|
||||
def test_post_shift_constraint(self):
|
||||
Rota = generate_basic_rota()
|
||||
@@ -311,4 +311,4 @@ class TestShiftConstraints:
|
||||
Rota.build_and_solve(options={"ratio": 0.000})
|
||||
Rota.export_rota_to_html("post")
|
||||
|
||||
assert Rota.results.solver.status == "warning"
|
||||
assert Rota.results.solver.status in ("warning", "error")
|
||||
Reference in New Issue
Block a user