mirror of
https://github.com/Kludex/awesome-fastapi-projects.git
synced 2024-11-24 04:21:09 +00:00
13 lines
395 B
Python
13 lines
395 B
Python
|
"""Factories for creating models for testing."""
|
||
|
from polyfactory.factories.pydantic_factory import ModelFactory
|
||
|
from polyfactory.pytest_plugin import register_fixture
|
||
|
|
||
|
from app.models import DependencyCreateData
|
||
|
|
||
|
|
||
|
@register_fixture
|
||
|
class DependencyCreateDataFactory(ModelFactory[DependencyCreateData]):
|
||
|
"""Factory for creating DependencyCreateData."""
|
||
|
|
||
|
__model__ = DependencyCreateData
|