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

@@ -87,7 +87,7 @@ async def test_get_article_without_required_qs_should_return_an_error_message(
'loc_in': 'query string',
'msg': 'Field required',
'type': 'missing',
'url': 'https://errors.pydantic.dev/2.4/v/missing'
'url': 'https://errors.pydantic.dev/2.5/v/missing'
}
]
@@ -109,7 +109,7 @@ async def test_get_article_with_wrong_qs_type_should_return_an_error_message(
'loc_in': 'query string',
'msg': 'Input should be a valid boolean, unable to interpret input',
'type': 'bool_parsing',
'url': 'https://errors.pydantic.dev/2.4/v/bool_parsing'
'url': 'https://errors.pydantic.dev/2.5/v/bool_parsing'
}
]
@@ -168,7 +168,7 @@ async def test_get_article_with_multiple_value_for_qs_age_must_failed(
'loc_in': 'query string',
'msg': 'Input should be a valid integer',
'type': 'int_type',
'url': 'https://errors.pydantic.dev/2.4/v/int_type'
'url': 'https://errors.pydantic.dev/2.5/v/int_type'
}
]
assert resp.status == 400
@@ -227,7 +227,7 @@ async def test_get_article_without_required_field_page(aiohttp_client, event_loo
'loc_in': 'query string',
'msg': 'Field required',
'type': 'missing',
'url': 'https://errors.pydantic.dev/2.4/v/missing'
'url': 'https://errors.pydantic.dev/2.5/v/missing'
}
]
assert resp.status == 400
@@ -291,7 +291,7 @@ async def test_get_article_with_page_and_wrong_page_size(aiohttp_client, event_l
'msg': 'Input should be a valid integer, unable to parse string as an '
'integer',
'type': 'int_parsing',
'url': 'https://errors.pydantic.dev/2.4/v/int_parsing'
'url': 'https://errors.pydantic.dev/2.5/v/int_parsing'
}
]
assert resp.status == 400