(kwargs, msg)
| 57 | 'pathlengths': [2]}, "The lengths of 'flows'"), |
| 58 | )) |
| 59 | def test_sankey_add_errors(kwargs, msg): |
| 60 | sankey = Sankey() |
| 61 | with pytest.raises(ValueError, match=msg): |
| 62 | sankey.add(flows=[0.2, -0.2]) |
| 63 | sankey.add(**kwargs) |
| 64 | |
| 65 | |
| 66 | def test_sankey2(): |