Skip to content
Snippets Groups Projects
factories.py 323 B
import factory
import hashlib
from .models import Poll
from django.db.models.signals import post_save

@factory.django.mute_signals(post_save)
class PollFactory(factory.django.DjangoModelFactory):
    class Meta:
        model = Poll

    # Please refer to Factory boy documentation
    # https://factoryboy.readthedocs.io