Skip to main content

apps.users.tests.factories

UserProfileFactory

class UserProfileFactory(factory.django.DjangoModelFactory)

Note: do not add the UserAvatarFactory as SubFactory here. It is very slow and UserProfile is created for almost every test causing severe performance degradation

ImageFactoryParams

class ImageFactoryParams(TypedDict)

color: str

color = None

default: 'blue'

format: str

format = None

default: 'JPEG'