We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 470e813 commit 8bc6450Copy full SHA for 8bc6450
tests/test_pydantic/test_field.py
@@ -1,5 +1,5 @@
1
from decimal import Decimal
2
-from typing import List, Optional, Union
+from typing import Optional, Union
3
4
import pytest
5
from pydantic import ValidationError
@@ -22,16 +22,6 @@ class Model(SQLModel):
22
Model(dec=Decimal("420"))
23
24
25
-def test_unique_items():
26
- class Model(SQLModel):
27
- unique_strings: List[str] = Field(unique_items=True)
28
-
29
- Model(unique_strings=["x", "y"])
30
31
- with pytest.raises(ValidationError):
32
- Model(unique_strings=["x", "y", "x"])
33
34
35
def test_discriminator():
36
# Example adapted from
37
# [Pydantic docs](https://pydantic-docs.helpmanual.io/usage/types/#discriminated-unions-aka-tagged-unions):
0 commit comments