Example #1
0
def get_all_users():
    """
    Get the information of all users from our userdatamodel database

    Returns a json object.
    """
    return jsonify(admin.get_all_users(current_session))
Example #2
0
def get_all_users():
    """
    Retrieve the information regarding the buckets created within a project.
    Returns a json object.
    """
    return jsonify(admin.get_all_users(current_session))
def test_get_all_users(db_session, awg_users):
    user_list = adm.get_all_users(db_session)
    user_name_list = [item["name"] for item in user_list["users"]]
    assert "awg_user" in user_name_list
    assert "awg_user_2" in user_name_list