Skip to content

Commit

Permalink
add bug reference as test_plain_validator_plain_serializer docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Anvil committed Jan 17, 2024
1 parent dac27ff commit 1c222e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_validators.py
Expand Up @@ -2814,6 +2814,7 @@ def value_b_validator(cls, value):


def test_plain_validator_plain_serializer() -> None:
"""https://github.com/pydantic/pydantic/issues/8512"""
ser_type = str
serializer = PlainSerializer(lambda x: ser_type(int(x)), return_type=ser_type)
validator = PlainValidator(lambda x: bool(int(x)))
Expand Down

0 comments on commit 1c222e9

Please sign in to comment.