From 6e89ad374b499bc32fa9ba7abc51fe03881d9567 Mon Sep 17 00:00:00 2001 From: honglei Date: Wed, 16 Aug 2023 23:21:40 +0800 Subject: [PATCH] black/isort for test_nullable.py --- tests/test_nullable.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_nullable.py b/tests/test_nullable.py index 2509da06c6..c21d311695 100644 --- a/tests/test_nullable.py +++ b/tests/test_nullable.py @@ -1,11 +1,14 @@ from typing import Optional import pytest +from pydantic import AnyUrl, UrlConstraints from sqlalchemy.exc import IntegrityError from sqlmodel import Field, Session, SQLModel, create_engine from typing_extensions import Annotated -from pydantic import AnyUrl, UrlConstraints -MoveSharedUrl = Annotated[AnyUrl, UrlConstraints(max_length=512, allowed_schemes=['smb', 'ftp','file'])] + +MoveSharedUrl = Annotated[ + AnyUrl, UrlConstraints(max_length=512, allowed_schemes=["smb", "ftp", "file"]) +] def test_nullable_fields(clear_sqlmodel, caplog):