hotpocket/services/backend/testing/hotpocket_backend_testing/factories/accounts.py
Tomek Wójcik b4338e2769
Some checks failed
CI / Checks (push) Failing after 13m2s
Release v1.0.0
2025-08-20 21:00:50 +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