Added test for plug-in class without docstring.
This commit is contained in:
parent
03a5a6d295
commit
e413cf0214
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue