Skip to content

Commit

Permalink
fix the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingru923 committed May 2, 2024
1 parent 470f5eb commit 249c345
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/ribasim/tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ def test_invalid_node_id(basic):

with pytest.raises(
ValueError,
match=re.escape(
"1 validation error for Node\nnode_id\n Input should be greater than or equal to 0 [type=greater_than_equal, input_value=-1, input_type=int]\n For further information visit https://errors.pydantic.dev/2.6/v/greater_than_equal"
),
match=r".* Input should be greater than or equal to 0 .*",
):
model.pump.add(Node(-1, Point(7.0, 7.0)), [pump.Static(flow_rate=[0.5 / 3600])])

Expand Down

0 comments on commit 249c345

Please sign in to comment.