[tests/config] Add tests for helptexts

Ensure that each theme is listed in the helptext and that there is a
helptext entry for every module.
This commit is contained in:
Tobi-wan Kenobi 2016-12-17 08:42:23 +01:00
parent 4f7666533c
commit 9a350ddc2a
2 changed files with 26 additions and 1 deletions

View file

@ -4,6 +4,7 @@ This module provides configuration information (loaded modules,
module parameters, etc.) to all other components
"""
import sys
import argparse
import textwrap
import importlib
@ -26,7 +27,7 @@ class print_usage(argparse.Action):
self.print_themes()
else:
parser.print_help()
parser.exit()
sys.exit(0)
def print_themes(self):
print(textwrap.fill(", ".join(bumblebee.theme.themes()),