Skip to content

Commit

Permalink
moving assert outside of with context
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle committed Oct 2, 2023
1 parent 31a4311 commit cc56f2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/validators/test_with_default.py
Expand Up @@ -802,4 +802,5 @@ def _raise(ex: Exception) -> None:

with pytest.raises(ValidationError) as exc_info:
v.validate_python(input_value)
assert exc_info.value.errors(include_url=False, include_context=False) == expected

assert exc_info.value.errors(include_url=False, include_context=False) == expected

0 comments on commit cc56f2a

Please sign in to comment.