[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:
parent
4f7666533c
commit
9a350ddc2a
2 changed files with 26 additions and 1 deletions
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue