Skip to content

Commit

Permalink
deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroPasotti committed Feb 7, 2024
1 parent 6a7727f commit b8a6359
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interface_tester/interface_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
logger = logging.getLogger(__name__)

_has_pydantic_v1 = pydantic.version.VERSION.split(".") <= ["2"]
if _has_pydantic_v1:
logger.warning(
"You seem to be using pydantic v1. "
"Please upgrade to v2, as compatibility may be dropped in a future version of pytest-interface-tester."
)


def _validate(model: pydantic.BaseModel, obj: dict):
Expand Down

0 comments on commit b8a6359

Please sign in to comment.