feat: bump packages, fix tests; fix: pydantic .dict() to .model_dump(); bump: 2.0.4

This commit is contained in:
Georg K
2023-11-15 19:44:30 +03:00
parent 937c09e2b7
commit a45101637c
9 changed files with 18 additions and 18 deletions

View File

@@ -80,7 +80,7 @@ async def test_get_article_without_required_header_should_return_an_error_messag
'type': 'missing',
'loc': ['signature_expired'],
'msg': 'Field required',
'url': 'https://errors.pydantic.dev/2.4/v/missing',
'url': 'https://errors.pydantic.dev/2.5/v/missing',
'loc_in': 'headers'
}
]
@@ -104,7 +104,7 @@ async def test_get_article_with_wrong_header_type_should_return_an_error_message
'msg': 'Input should be a valid datetime, input is too short',
'input': 'foo',
'ctx': {'error': 'input is too short'},
'url': 'https://errors.pydantic.dev/2.4/v/datetime_parsing',
'url': 'https://errors.pydantic.dev/2.5/v/datetime_parsing',
'loc_in': 'headers'
}
]