add new fields to faker
This commit is contained in:
parent
c93f42dcca
commit
b29204ff34
|
@ -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');
|
||||||
|
@ -127,4 +126,8 @@ class UserFactory(factory.django.DjangoModelFactory):
|
||||||
discord = '@uwu' # они поменяли формат
|
discord = '@uwu' # они поменяли формат
|
||||||
|
|
||||||
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']);
|
Loading…
Reference in New Issue