Module: check_mk
Branch: master
Commit: 986c4b26f49dc39b22e65d0e0eff4ad5f449c875
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=986c4b26f49dc3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 25 15:43:24 2016 +0200
Fixed test for manpage generation
---
tests/lib/test_man_pages.py | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/tests/lib/test_man_pages.py b/tests/lib/test_man_pages.py
index c845dbe..a851e2c 100644
--- a/tests/lib/test_man_pages.py
+++ b/tests/lib/test_man_pages.py
@@ -158,17 +158,9 @@ def test_load_man_page_format():
_check_man_page_structure(page)
# Check optional keys
- for key in [ 'perfdata', 'item', 'examples',
'inventory']:
+ for key in [ 'item', 'inventory']:
assert key in page["header"]
- for entry in page["configuration"]:
- assert type(entry) == tuple
- assert len(entry) == 2
-
- for entry in page["parameters"]:
- assert type(entry) == tuple
- assert len(entry) == 2
-
def test_print_man_page_nowiki_index(capsys):
renderer = man_pages.NowikiManPageRenderer("if64")
@@ -190,7 +182,8 @@ def test_print_man_page_nowiki_content(capsys):
assert err == ""
assert content.startswith("TI:")
- assert "\nH1:" in content
+ assert "\nSA:" in content
+ assert "License:" in content
def test_print_man_page(capsys):