lisa.tests.base.ResultBundleBase#

class lisa.tests.base.ResultBundleBase[source]#

Bases: Exception

Base class for all result bundles.

Note

__init__ is not provided as some classes uses properties to provide some of the attributes.

Methods

__bool__()

True if the result is Result.PASSED, False otherwise.

add_metric()

Lets you append several test TestMetric to the bundle.

display_and_exit()

pretty_format()

Methods#

ResultBundleBase.__bool__()[source]#

True if the result is Result.PASSED, False otherwise.

ResultBundleBase.add_metric(name, data, units=None)[source]#

Lets you append several test TestMetric to the bundle.

Parameters:

TestMetric parameters

ResultBundleBase.display_and_exit() None[source]#
ResultBundleBase.pretty_format(multiline=True)[source]#