Exemplo n.º 1
0
def admin_user():
    admin_role = Role.get(Role.name == RoleOptions.ADMINISTRATOR.value)
    return User.create(  # NOQA: B106, S106
        username='******',
        fullname='Buya',
        mail_address='*****@*****.**',
        password='******',
        role=admin_role,
    )
Exemplo n.º 2
0
def staff_user(staff_password):
    staff_role = Role.get(Role.name == RoleOptions.STAFF.value)
    return User.create(  # NOQA: S106
        username='******',
        fullname='Elk',
        mail_address='*****@*****.**',
        password=staff_password,
        role=staff_role,
    )
Exemplo n.º 3
0
def admin_user():
    admin_role = Role.get(Role.name == RoleOptions.ADMINISTRATOR.value)
    username = '******'
    return User.create(  # NOQA: B106, S106
        username=username,
        fullname='Buya',
        mail_address='*****@*****.**',
        password=FAKE_PASSWORD,
        api_key='fake key',
        role=admin_role,
    )