From aa1fa5271fa53971587fafe270ac225dc0e79334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 4 Oct 2022 23:34:57 +0200 Subject: fixup! wip: externalize generation of option arguments --- tests/conftest.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/conftest.py') diff --git a/tests/conftest.py b/tests/conftest.py index 5871ed8..e598a79 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1 +1,17 @@ +from enum import Enum +from pydantic import BaseModel, Field + import pytest + + +class GenericArguments(BaseModel): + + class FruitEnum(str, Enum): + apple = "apple" + banana = "banana" + pineapple = "pineapple" + + name: str = Field(min_length=10) + version: int = Field(gt=0) + force: bool = Field(default=False, description="Force ABC.") + fruit: FruitEnum -- cgit v1.2.3