From 58c54a1d71dd09becd4a7365bf13dc487238e3cf Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 9 Jan 2024 13:57:16 -0300 Subject: [PATCH] [Tests][Added] --help-list-rotations and --help-list-offsets --- tests/test_plot/test_misc.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index edc47444..2e2fa17d 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -312,6 +312,20 @@ def test_help_errors(test_dir): ctx.clean_up() +def test_help_list_rotations(test_dir): + ctx = context.TestContext(test_dir, '3Rs', 'pre_and_position') + ctx.run(extra=['--help-list-rotations'], no_verbose=True, no_out_dir=True, no_yaml_file=True, no_board_file=True) + assert ctx.search_out('SOT-223(.*)180') + ctx.clean_up() + + +def test_help_list_offsets(test_dir): + ctx = context.TestContext(test_dir, '3Rs', 'pre_and_position') + ctx.run(extra=['--help-list-offsets'], no_verbose=True, no_out_dir=True, no_yaml_file=True, no_board_file=True) + assert ctx.search_out(r'Footprint\s+Offset X') + ctx.clean_up() + + def test_help_list_outputs(test_dir): ctx = context.TestContext(test_dir, '3Rs', 'pre_and_position') ctx.run(extra=['--help-list-outputs'], no_verbose=True, no_out_dir=True, no_yaml_file=True, no_board_file=True)