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, )
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, )
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, )