from factory import DjangoModelFactory, Faker

from todovoodoo.core.models import TodoList


class TodoListFactory(DjangoModelFactory):

    owner = Faker("user_name")
    name = Faker("name")

    class Meta:
        model = TodoList
        django_get_or_create = ["name"]

from factory import DjangoModelFactory, Faker

from todovoodoo.core.models import TodoList


class TodoListFactory(DjangoModelFactory):

    owner = Faker("user_name")
    name = Faker("name")

    class Meta:
        model = TodoList
        django_get_or_create = ["name"]
