From 8e2b363c7731a1cf0543b45f3f7329759aa7edc5 Mon Sep 17 00:00:00 2001 From: honglei Date: Sun, 20 Aug 2023 22:01:45 +0800 Subject: [PATCH] annotation not null --- tests/test_nullable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_nullable.py b/tests/test_nullable.py index b4fa1bb..3117812 100644 --- a/tests/test_nullable.py +++ b/tests/test_nullable.py @@ -88,7 +88,7 @@ def test_nullable_fields(clear_sqlmodel, caplog): assert "str_default_str_nullable VARCHAR," in create_table_log assert "str_default_ellipsis_non_nullable VARCHAR NOT NULL," in create_table_log assert "str_default_ellipsis_nullable VARCHAR," in create_table_log - assert "annotated_any_url VARCHAR(512)," in create_table_log + assert "annotated_any_url VARCHAR(512) NOT NULL" in create_table_log # Test for regression in https://github.com/tiangolo/sqlmodel/issues/420