-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eduard0803
committed
Nov 29, 2023
1 parent
df82778
commit c8ea5f0
Showing
4 changed files
with
331 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
def generate_fake_user(): | ||
from faker import Faker | ||
|
||
f = Faker('pt-br') | ||
user = { | ||
'name': f'{f.name()}', | ||
'address': f'{f.address()}', | ||
'neighborhood': 'Gama', | ||
'city': f'{f.city()}', | ||
'state': f'{f.state()}', | ||
'zipcode': f'{f.postcode()}', | ||
'cpf': f'{f.random_number(digits=11)}', | ||
'rg': f'{f.random_number(digits=7)}', | ||
'birth_date': f'{f.date_of_birth()}', | ||
'place_of_birth': f'{f.city()}', | ||
'blood_type': 'A+', | ||
'gender': 'M', | ||
'father_name': f'{f.name()}', | ||
'mother_date': f'{f.name()}', | ||
'position': 'null', | ||
'occupancy': 'null', | ||
'admission_date': f'{f.date_of_birth()}', | ||
'situation': 'active', | ||
'phone': f'{f.phone_number()}', | ||
'email': f'{f.email(domain="sindpol.org.br")}', | ||
'marital_status': 'alone', | ||
'education': 'Bachelor Degree', | ||
'registration': f'{f.random_number(digits=10)}', | ||
'role': 'cop', | ||
'category': 'null', | ||
'pattern': 'null', | ||
'dispatcher': 'null', | ||
'dispatched_date': f'{f.date_of_birth()}', | ||
'war_name': f'{f.name()}', | ||
'password': 'admin', | ||
'rg_consignor': 'SSP', | ||
'rg_date': f'{f.date_of_birth()}', | ||
'situation_obs': 'null' | ||
} | ||
|
||
return user | ||
|
Oops, something went wrong.