def post_solve(job: Job): assert job.__class__ == Job assert job.valid() solved: Result = distribute(job) assert solved.valid() return solved
def test_invalid(): job1 = Job(max_length=0, target_sizes=(TargetSize(length=100, quantity=2), TargetSize(length=200, quantity=1)), cut_width=0) assert not job1.valid()