lisa.tests.base.TestMetric#

class lisa.tests.base.TestMetric(data, units=None)[source]#

Bases: object

A storage class for metrics used by tests

Parameters:
  • data – The data to store. Can be any base type or dict(TestMetric)

  • units (str) – The data units

Methods

pretty_format()

Pretty print the metrics.

Methods#

TestMetric.pretty_format(multiline=True)[source]#

Pretty print the metrics.

Parameters:

multiline (bool) – If True, use a multiline format.