mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 10:07:15 +01:00
18 lines
295 B
Python
18 lines
295 B
Python
|
|
import factory
|
||
|
|
|
||
|
|
from ..models import Document, Correspondent
|
||
|
|
|
||
|
|
|
||
|
|
class CorrespondentFactory(factory.DjangoModelFactory):
|
||
|
|
|
||
|
|
class Meta:
|
||
|
|
model = Correspondent
|
||
|
|
|
||
|
|
name = factory.Faker("name")
|
||
|
|
|
||
|
|
|
||
|
|
class DocumentFactory(factory.DjangoModelFactory):
|
||
|
|
|
||
|
|
class Meta:
|
||
|
|
model = Document
|