From b29204ff34d83f3ad4a6adf3cf36cb3126c4b3c6 Mon Sep 17 00:00:00 2001 From: b1ek Date: Tue, 16 May 2023 22:53:30 +1000 Subject: [PATCH] add new fields to faker --- pairent_backend/pairent_app/factories.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pairent_backend/pairent_app/factories.py b/pairent_backend/pairent_app/factories.py index 08479df..db0cd00 100644 --- a/pairent_backend/pairent_app/factories.py +++ b/pairent_backend/pairent_app/factories.py @@ -115,7 +115,6 @@ class UserFactory(factory.django.DjangoModelFactory): favorites_apartments = CSV(1, 100, 1, 16); comparison_apartments = CSV(1, 100, 1, 5); - openid_addr = OpenID_Address(); name = factory.faker.Faker('name'); date_of_birth = Date(1980, 2006); about_me = factory.faker.Faker('sentence'); @@ -127,4 +126,8 @@ class UserFactory(factory.django.DjangoModelFactory): discord = '@uwu' # они поменяли формат city = Random(0,0,0, ['Владивосток', 'Хабаровск', 'Урюпинск', 'Мухосранск', 'Нью-Йорк']) - role = 's' \ No newline at end of file + role = 's' + + openid_addr = OpenID_Address(); + openid_id = factory.faker.Faker('uuid'); + photo_provider = Random(0,0,0, ['VVSU', 'GRAVATAR']); \ No newline at end of file