import textwrap


def prepare_description(report):
    """Constructs a description from a test report."""
    raw = report['description']

    # Wrap to at most 80 characters.
    wrapped = textwrap.wrap(raw, 80)
    description = wrapped[0]

    if len(wrapped) > 1:
        # If the text is longer than one line, add an ellipsis.
        description += '...'

    return description