def build_property_list(config_dict):
    """ Build a list of properties and values that will end up in junit xml. This should only
        be used for testing purposes to set expectations.

    Args:
        config_dict: a python object representation of pytest_zigzag config json

    Returns:
        props: a flattened dictionary of properties and values
    """
    props = {}
    for root_key in config_dict:
        if not config_dict[root_key] is None:
            for key in config_dict[root_key]:
                props[key] = config_dict[root_key][key]
    return props