hotpocket/services/backend/testing/hotpocket_backend_testing/factories/accounts.py
Tomek Wójcik d909391ee6
Some checks failed
CI / Checks (push) Has been cancelled
Release v1.0.0rc1
2025-08-18 07:09:27 +02:00

21 lines
461 B
Python

# -*- coding: utf-8 -*-
from __future__ import annotations
import uuid
import factory
from hotpocket_backend.apps.accounts.models import Account
class AccountFactory(factory.django.DjangoModelFactory):
username = factory.LazyFunction(uuid.uuid4)
first_name = factory.Faker('first_name')
last_name = factory.Faker('last_name')
email = factory.Faker('email')
is_staff = False
is_active = True
class Meta:
model = Account