Tests that passing no profiles (i.e., no distance and duration matrices) raises an error.
(ok_small, distances, durations)
| 790 | ("distances", "durations"), [([], []), ([], None), (None, [])] |
| 791 | ) |
| 792 | def test_raises_no_profiles(ok_small, distances, durations): |
| 793 | """ |
| 794 | Tests that passing no profiles (i.e., no distance and duration matrices) |
| 795 | raises an error. |
| 796 | """ |
| 797 | with assert_raises((ValueError, IndexError)): |
| 798 | ok_small.replace( |
| 799 | distance_matrices=distances, |
| 800 | duration_matrices=durations, |
| 801 | ) |
| 802 | |
| 803 | |
| 804 | def test_raises_inconsistent_profiles(ok_small): |