summaryrefslogblamecommitdiffstats
path: root/tests/conftest.py
blob: e598a794133335400ff052e47fbde684ce966197 (plain) (tree)
1
2
3
4


                                     
             












                                                                
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
remember that computers suck.