mirror of
https://github.com/Kludex/awesome-fastapi-projects.git
synced 2024-11-30 15:31:07 +00:00
13 lines
389 B
Python
13 lines
389 B
Python
|
"""Factories for creating test data."""
|
||
|
from polyfactory.factories.pydantic_factory import ModelFactory
|
||
|
from polyfactory.pytest_plugin import register_fixture
|
||
|
|
||
|
from app.source_graph.models import SourceGraphRepoData
|
||
|
|
||
|
|
||
|
@register_fixture
|
||
|
class SourceGraphRepoDataFactory(ModelFactory[SourceGraphRepoData]):
|
||
|
"""Factory for creating RepoCreateData."""
|
||
|
|
||
|
__model__ = SourceGraphRepoData
|