chore: import WonderQ project
This commit is contained in:
commit
f5a9e4403a
452 files changed
+34173
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import pytest
|
||||
from pydantic import ValidationError
|
||||
from app.schemas import LeadCreateIn, ProductCreateIn
|
||||
|
||||
|
||||
def test_lead_phone_is_normalized():
|
||||
lead = LeadCreateIn(phone=" 187 8617 4929 ")
|
||||
assert lead.phone == "187 8617 4929"
|
||||
|
||||
|
||||
def test_product_title_requires_two_chars():
|
||||
with pytest.raises(ValidationError):
|
||||
ProductCreateIn(title="A")
|
||||
Reference in new issue
Block a user