Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plurals in validation error messages (in tests) #7972

Merged
merged 2 commits into from Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_main.py
Expand Up @@ -693,7 +693,7 @@ def test_validating_assignment_fail(ValidateAssignmentModel):
{
'type': 'string_too_short',
'loc': ('b',),
'msg': 'String should have at least 1 characters',
'msg': 'String should have at least 1 character',
'input': '',
'ctx': {'min_length': 1},
}
Expand Down Expand Up @@ -3045,7 +3045,7 @@ class Model(BaseModel):
{
'type': 'string_too_long',
'loc': ('y',),
'msg': 'String should have at most 1 characters',
'msg': 'String should have at most 1 character',
'input': ' 1 ',
'ctx': {'max_length': 1},
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_types.py
Expand Up @@ -3064,7 +3064,7 @@ class Model(BaseModel):
{
'type': 'decimal_max_places',
'loc': ('foo',),
'msg': 'Decimal input should have no more than 1 decimal places',
'msg': 'Decimal input should have no more than 1 decimal place',
'input': Decimal('0.99'),
'ctx': {
'decimal_places': 1,
Expand Down