Added test for plug-in class without docstring.

This commit is contained in:
Salvador E. Tropea 2021-02-04 11:14:27 -03:00
parent 03a5a6d295
commit e413cf0214
2 changed files with 2 additions and 4 deletions

View File

@ -21,9 +21,6 @@ class TestOptions(BaseOptions):
@output_class
class Test(BaseOutput): # noqa: F821
""" Test for plugin
A loadable output.
Nothing useful, just a test. """
def __init__(self):
super().__init__()
logger.debug('Creating a test')

View File

@ -360,7 +360,8 @@ def test_help_output_plugin_1(test_dir, monkeypatch):
m.setenv("HOME", os.path.join(ctx.get_board_dir(), '../..'))
logging.debug('HOME='+os.environ['HOME'])
ctx.run(extra=['--help-output', 'test'], no_verbose=True, no_out_dir=True, no_yaml_file=True, no_board_file=True)
assert ctx.search_out('Test for plugin')
assert ctx.search_out(r'\* Undocumented')
assert ctx.search_out('Description: No description')
assert ctx.search_out('Type: .?test.?')
assert ctx.search_out('nothing')
assert ctx.search_out('chocolate')