what is it?

integrates factory_boy with pytest

register

registers a factory as a custom pytest fixture

from pytest_factoryboy import register
from polls.factories import UserFactory
 
 
register(UserFactory)
polls/factories.py
class UserFactory(DjangoModelFactory):
    class Meta:
        model = User

in the above example user will be registered as a fixture