Module: check_mk
Branch: master
Commit: 501c011f5c640dc75578fbd9911e3a5b479967bc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=501c011f5c640d…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Mar 21 14:50:49 2018 +0100
checktestlib.py: Slight formatting improvement
Change-Id: I757a78834ab6d481d5cfaacd01b4f10f7772d103
---
tests/checks/checktestlib.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/checks/checktestlib.py b/tests/checks/checktestlib.py
index 68fa1a8..44333f4 100644
--- a/tests/checks/checktestlib.py
+++ b/tests/checks/checktestlib.py
@@ -1,5 +1,7 @@
import types
+
+
class Tuploid(object):
"""Base class for values with (potentially variadic) tuple
representations"""
@@ -21,6 +23,7 @@ class Tuploid(object):
yield x
+
class PerfValue(Tuploid):
"""Represents a single perf value"""
@@ -60,6 +63,7 @@ class PerfValue(Tuploid):
self.crit, self.minimum,
self.maximum)
+
class BasicCheckResult(Tuploid):
"""
A basic check result
@@ -100,6 +104,7 @@ class BasicCheckResult(Tuploid):
return 'BasicCheckResult(%s, "%s", %s)' % (self.status,
self.infotext, self.perfdata)
+
class CheckResult(object):
"""
A check result potentially consisting of multiple subresults,
@@ -152,6 +157,7 @@ class CheckResult(object):
return perfdata
+
class DiscoveryEntry(Tuploid):
"""A single entry as returned by the discovery (or in oldspeak:
inventory) function."""
@@ -169,6 +175,7 @@ class DiscoveryEntry(Tuploid):
return "DiscoveryEntry(%r, %r)" % (self.item, self.default_params)
+
class DiscoveryResult(object):
"""
The result of the discovery as a whole.