Skip to content

Commit

Permalink
[Tests][Added] Outputs help in separated files
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jan 19, 2024
1 parent bb936ae commit e94c4a0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_plot/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,23 @@ 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')
assert ctx.search_out('Type: .?.?gerber.?.?')
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)
Expand Down

0 comments on commit e94c4a0

Please sign in to comment.