mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-18 09:31:07 +00:00
23 lines
450 B
Python
23 lines
450 B
Python
from factory import DjangoModelFactory
|
|
|
|
from fobi.models import FormEntry
|
|
|
|
from .factory_faker import Faker
|
|
|
|
__all__ = ('FormEntryFactory',)
|
|
|
|
|
|
class BaseFormEntryFactory(DjangoModelFactory):
|
|
"""Factory for creating a site."""
|
|
|
|
domain = Faker('domain_name')
|
|
name = Faker('domain_name')
|
|
|
|
class Meta(object):
|
|
"""Options."""
|
|
|
|
model = FormEntry
|
|
|
|
|
|
class FormEntryFactory(BaseFormEntryFactory):
|
|
"""Form entry factory."""
|