def new_admin(user, password_hasher):
    """ Create new admin user for testing. """
    User = user

    # Admin user mock data
    admin_user_data = {
        "username": "admin",
        "email": "admin@email.com",
        "password": password_hasher.hash("admin"),
    }

    new_admin = User(**admin_user_data)
    new_admin.save()

    return new_admin