2022-02-27 15:26:41 +01:00

17 lines
326 B
Python

from factory import Faker
from factory.django import DjangoModelFactory
from ..models import Document, Correspondent
class CorrespondentFactory(DjangoModelFactory):
class Meta:
model = Correspondent
name = Faker("name")
class DocumentFactory(DjangoModelFactory):
class Meta:
model = Document