Add initial implementations for forms and organization apps with serializers, factories, and admin configurations
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 45s
CI/CD Pipeline / Code Quality Checks (push) Failing after 48s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 45s
CI/CD Pipeline / Code Quality Checks (push) Failing after 48s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
This commit is contained in:
@@ -62,6 +62,7 @@ class ProfileFactory(factory.django.DjangoModelFactory):
|
||||
|
||||
user = factory.SubFactory(UserFactory)
|
||||
first_name = factory.LazyAttribute(lambda _: fake.first_name())
|
||||
mid_name = factory.LazyAttribute(lambda _: fake.first_name())
|
||||
last_name = factory.LazyAttribute(lambda _: fake.last_name())
|
||||
bio = factory.LazyAttribute(lambda _: fake.text(max_nb_chars=200))
|
||||
date_of_birth = factory.LazyAttribute(
|
||||
@@ -81,6 +82,8 @@ class ProfileFactory(factory.django.DjangoModelFactory):
|
||||
# Заполняем поля faker'ом, если не переданы
|
||||
if "first_name" not in kwargs:
|
||||
profile.first_name = fake.first_name()
|
||||
if "mid_name" not in kwargs:
|
||||
profile.mid_name = fake.first_name()
|
||||
if "last_name" not in kwargs:
|
||||
profile.last_name = fake.last_name()
|
||||
if "bio" not in kwargs:
|
||||
|
||||
Reference in New Issue
Block a user