Module: check_mk
Branch: master
Commit: 4e93ec8a26750ad6a849b2844470ac36be8dd7b6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4e93ec8a26750a…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Wed Oct 17 12:57:26 2018 +0200
generictests: more helpful assert message
Change-Id: I6c9dd4dfa1c297153331416e9709ffedbcbf26b1
---
tests/unit/checks/generictests/run.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/unit/checks/generictests/run.py
b/tests/unit/checks/generictests/run.py
index eb6d44e..673f414 100644
--- a/tests/unit/checks/generictests/run.py
+++ b/tests/unit/checks/generictests/run.py
@@ -180,7 +180,7 @@ def run(check_manager, dataset, write=False):
"""Run all possible tests on 'dataset'"""
print("START: %r" % dataset)
checklist = checkhandler.get_applicables(dataset.checkname)
- assert checklist
+ assert checklist, "Found no check plugin for %r" % dataset.checkname
immu = Immutables()
# test the parse function