Allow using Pydantic v2 (#533)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
This commit is contained in:
parent
323787151e
commit
3a0fa0c7be
10 changed files with 45 additions and 14 deletions
|
|
@ -10,7 +10,6 @@ from unittest import mock
|
|||
|
||||
import pytest
|
||||
import pytest_asyncio
|
||||
from pydantic import ValidationError
|
||||
|
||||
from aredis_om import (
|
||||
Field,
|
||||
|
|
@ -24,6 +23,7 @@ from aredis_om import (
|
|||
# We need to run this check as sync code (during tests) even in async mode
|
||||
# because we call it in the top-level module scope.
|
||||
from redis_om import has_redisearch
|
||||
from tests._compat import ValidationError
|
||||
|
||||
from .conftest import py_test_mark_asyncio
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue