<filename>francoralite/apps/francoralite_api/tests/factories/institution.py
"""
Institution factory to execute tests
"""

import factory
from ...models.institution import Institution


class InstitutionFactory(factory.django.DjangoModelFactory):
    """
    Institution factory
    """

    class Meta:
        model = Institution

    name = factory.Faker('word')
    notes = factory.Faker('word')

<filename>francoralite/apps/francoralite_api/tests/factories/institution.py
"""
Institution factory to execute tests
"""

import factory
from ...models.institution import Institution


class InstitutionFactory(factory.django.DjangoModelFactory):
    """
    Institution factory
    """

    class Meta:
        model = Institution

    name = factory.Faker('word')
    notes = factory.Faker('word')

Institution factory to execute tests Institution factory