Tests that passing an empty client group raises a ValueError.
()
| 824 | |
| 825 | |
| 826 | def test_raises_empty_group(): |
| 827 | """ |
| 828 | Tests that passing an empty client group raises a ValueError. |
| 829 | """ |
| 830 | with assert_raises(ValueError): |
| 831 | ProblemData( |
| 832 | clients=[], |
| 833 | depots=[Depot(1, 1)], |
| 834 | vehicle_types=[VehicleType()], |
| 835 | distance_matrices=[[[0]]], |
| 836 | duration_matrices=[[[0]]], |
| 837 | groups=[ClientGroup()], # empty group - this should raise |
| 838 | ) |
| 839 | |
| 840 | |
| 841 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected