From e413cf02141042c8b8b3ee49dc779c84f46af54c Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 4 Feb 2021 11:14:27 -0300 Subject: [PATCH] Added test for plug-in class without docstring. --- tests/.config/kiplot/plugins/out_test.py | 3 --- tests/test_plot/test_misc.py | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/.config/kiplot/plugins/out_test.py b/tests/.config/kiplot/plugins/out_test.py index efc86348..e7548dec 100644 --- a/tests/.config/kiplot/plugins/out_test.py +++ b/tests/.config/kiplot/plugins/out_test.py @@ -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') diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index afa2126b..6037d94d 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -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')