From b611c891cd9ff6904a65b23c2ea59e5432c644ae Mon Sep 17 00:00:00 2001 From: collerek Date: Sun, 23 May 2021 16:50:51 +0200 Subject: [PATCH] fix default check --- .../test_geting_the_pydantic_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_inheritance_and_pydantic_generation/test_geting_the_pydantic_models.py b/tests/test_inheritance_and_pydantic_generation/test_geting_the_pydantic_models.py index 46e677f..565ee3f 100644 --- a/tests/test_inheritance_and_pydantic_generation/test_geting_the_pydantic_models.py +++ b/tests/test_inheritance_and_pydantic_generation/test_geting_the_pydantic_models.py @@ -44,7 +44,7 @@ def test_getting_pydantic_model(): assert PydanticCategory.__fields__["name"].required assert issubclass(PydanticCategory.__fields__["name"].outer_type_, ConstrainedStr) - assert PydanticCategory.__fields__["name"].default is None + assert PydanticCategory.__fields__["name"].default in [None, Ellipsis] PydanticItem = PydanticCategory.__fields__["items"].type_ assert PydanticCategory.__fields__["items"].outer_type_ == List[PydanticItem]