possible tests fix
This commit is contained in:
parent
71fdb671ca
commit
d015da113c
@ -1,9 +1,13 @@
|
|||||||
import pytest
|
import pytest
|
||||||
from pydantic import ValidationError
|
|
||||||
|
|
||||||
from reflex.components.props import NoExtrasAllowedProps
|
from reflex.components.props import NoExtrasAllowedProps
|
||||||
from reflex.utils.exceptions import InvalidPropValueError
|
from reflex.utils.exceptions import InvalidPropValueError
|
||||||
|
|
||||||
|
try:
|
||||||
|
from pydantic.v1 import ValidationError
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
from pydantic import ValidationError
|
||||||
|
|
||||||
|
|
||||||
class PropA(NoExtrasAllowedProps):
|
class PropA(NoExtrasAllowedProps):
|
||||||
"""Base prop class."""
|
"""Base prop class."""
|
||||||
|
Loading…
Reference in New Issue
Block a user