From e94c4a0ec1bcb871230d42acb8aae636eb334127 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 19 Jan 2024 11:07:00 -0300 Subject: [PATCH] [Tests][Added] Outputs help in separated files --- tests/test_plot/test_misc.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index 2497e784..ebf96a1c 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -431,7 +431,7 @@ def test_help_outputs_md(test_dir): ctx.clean_up() -def test_help_outputs_rst(test_dir): +def test_help_outputs_rst_1(test_dir): ctx = context.TestContext(test_dir, '3Rs', 'pre_and_position') ctx.run(extra=['--help-outputs', '--rst'], no_verbose=True, no_out_dir=True, no_yaml_file=True, no_board_file=True) assert ctx.search_out('Gerber format') @@ -439,6 +439,15 @@ def test_help_outputs_rst(test_dir): ctx.clean_up() +def test_help_outputs_rst_2(test_dir): + """ Separated files """ + ctx = context.TestContext(test_dir, '3Rs', 'pre_and_position') + ctx.run(extra=['--help-outputs', '--rst'], no_verbose=True, no_yaml_file=True, no_board_file=True) + ctx.search_out('outputs/gerber') + ctx.expect_out_file('gerber.rst', sub=True) + ctx.clean_up() + + def test_help_preflights(test_dir): ctx = context.TestContext(test_dir, '3Rs', 'pre_and_position') ctx.run(extra=['--help-preflights'], no_verbose=True, no_out_dir=True, no_yaml_file=True, no_board_file=True)