Skip to content

Commit

Permalink
[Tests][Added] --help-list-rotations and --help-list-offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jan 9, 2024
1 parent 57678e6 commit 58c54a1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_plot/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 58c54a1

Please sign in to comment.