skrawcz commented on code in PR #668:
URL: https://github.com/apache/burr/pull/668#discussion_r2938266774
##########
tests/integrations/test_burr_pydantic.py:
##########
@@ -133,6 +134,12 @@ class MyModelWithConfig(pydantic.BaseModel):
assert SubsetModel.__name__ == "MyModelWithConfigSubset"
assert SubsetModel.model_config == {"arbitrary_types_allowed": True}
+def test_pydantic_version():
+ """Ensure pydantic >= 2.11 is installed (required for class-level
model_fields access)."""
+ from packaging.version import Version
+ assert float(float(".".join(pydantic.__version__.split(".")[:2]))) >=
float("2.11"), (
+ f"pydantic >= 2.11 required, got {pydantic.__version__}"
+ )
Review Comment:
@elijahbenizzy you didn't mean this right ?
What type of test were you looking for? I think the existing unit tests
should have covered things?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]