"""Results gathered from tests."""


class Results():
    """Class representing results gathered from tests."""

    def __init__(self):
        """Prepare empty result structure."""
        self.tests = []

    def add_test_result(self, test, test_result, cause=None, data=None, payload=None):
        """Add new results for a test into all results."""
        result = {}
        result["Test"] = test
        result["Result"] = str(test_result)
        result["Cause"] = cause
        result["Payload"] = payload
        result["Data"] = data
        self.tests.append(result)

"""Results gathered from tests."""


class Results():
    """Class representing results gathered from tests."""

    def __init__(self):
        """Prepare empty result structure."""
        self.tests = []

    def add_test_result(self, test, url, test_result, cause=None, data=None, payload=None,
                        status_code=None):
        """Add new results for a test into all results."""
        result = {}
        result["Test"] = test
        result["Url"] = url
        result["Result"] = str(test_result)
        result["Cause"] = cause
        result["Payload"] = payload
        result["Data"] = data
        result["Status code"] = status_code
        self.tests.append(result)

Store actual URL and status code in test results