mirror of
https://github.com/Kludex/awesome-fastapi-projects.git
synced 2024-11-24 04:21:09 +00:00
0610553651
* Refactor conftest * Fix docstrings
13 lines
394 B
Python
13 lines
394 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 SourceGraphRepoData."""
|
|
|
|
__model__ = SourceGraphRepoData
|