Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Nov 11, 2021
1 parent 137acaa commit 03b9682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/validation/test_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def test_validate():
validate(Data(42, 0))
with raises(ValidationError) as err:
validate(Data(0, 0))
assert err.value == ValidationError(["error"])
assert err.value.errors == [{"loc": [], "err": ["error"]}]
with raises(ValidationError) as err:
validate(Data(200, 0))
assert err.value == ValidationError(["error2"])
assert err.value.errors == [{"loc": [], "err": ["error2"]}]


def test_non_trivial():
Expand Down

0 comments on commit 03b9682

Please sign in to comment.