Skip to content

Commit

Permalink
One more workload test to extend coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tpaviot committed Feb 5, 2024
1 parent f8d065f commit 7f9a61a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,10 @@ def test_cumulative_resource_work_load_1() -> None:
solution.tasks[task_1.name].start == 8
and solution.tasks[task_2.name].start == 8
)


def test_resource_workload_raise_issue() -> None:
ps.SchedulingProblem(name="ResourceWorkloadRaiseIssue", horizon=10)
worker_1 = ps.Worker(name="Worker1")
with pytest.raises(AssertionError):
ps.WorkLoad(resource=worker_1, dict_time_intervals_and_bound={(3, 8): 0})

0 comments on commit 7f9a61a

Please sign in to comment.