add new fields to faker

This commit is contained in:
b1ek 2023-05-16 22:53:30 +10:00
parent c93f42dcca
commit b29204ff34
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 5 additions and 2 deletions

View File

@ -115,7 +115,6 @@ class UserFactory(factory.django.DjangoModelFactory):
favorites_apartments = CSV(1, 100, 1, 16); favorites_apartments = CSV(1, 100, 1, 16);
comparison_apartments = CSV(1, 100, 1, 5); comparison_apartments = CSV(1, 100, 1, 5);
openid_addr = OpenID_Address();
name = factory.faker.Faker('name'); name = factory.faker.Faker('name');
date_of_birth = Date(1980, 2006); date_of_birth = Date(1980, 2006);
about_me = factory.faker.Faker('sentence'); about_me = factory.faker.Faker('sentence');
@ -128,3 +127,7 @@ class UserFactory(factory.django.DjangoModelFactory):
city = Random(0,0,0, ['Владивосток', 'Хабаровск', 'Урюпинск', 'Мухосранск', 'Нью-Йорк']) city = Random(0,0,0, ['Владивосток', 'Хабаровск', 'Урюпинск', 'Мухосранск', 'Нью-Йорк'])
role = 's' role = 's'
openid_addr = OpenID_Address();
openid_id = factory.faker.Faker('uuid');
photo_provider = Random(0,0,0, ['VVSU', 'GRAVATAR']);