The original server code works with Pydantic V1 and V2. In this PR, the unit tests were modified to work with both versions of Pydantic. Pydantic V2 performs strict type checking and produces different error messages.
Removed deprecated use of pkg_resources.resource_filename. Identical functionality was implemented using importlib.resources.files.
Changes:
The original server code works with Pydantic V1 and V2. In this PR, the unit tests were modified to work with both versions of Pydantic. Pydantic V2 performs strict type checking and produces different error messages.
Removed deprecated use of
pkg_resources.resource_filename
. Identical functionality was implemented usingimportlib.resources.files
.