Skip to content

Commit

Permalink
[Tests][Info][Added] simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jan 22, 2024
1 parent c49a382 commit 8c35fe6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
10 changes: 10 additions & 0 deletions tests/test_plot/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1991,3 +1991,13 @@ def test_groups_2(test_dir):
ctx.run(no_board_file=True, no_out_dir=True, extra=['--only-names', '--list'])
ctx.search_out(['_Elecrow_compress', '_Elecrow_drill', '_Elecrow_gerbers'])
ctx.clean_up()


@pytest.mark.indep
def test_info_1(test_dir):
""" System information """
prj = 'simple_2layer' # fake
ctx = context.TestContext(test_dir, prj, 'info_1')
ctx.run()
ctx.expect_out_file(prj+'-info.txt')
ctx.clean_up()
2 changes: 1 addition & 1 deletion tests/yaml_samples/info_1.kibot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ outputs:
comment: "Information about the run"
type: info
options:
environment: full
environment: names
10 changes: 10 additions & 0 deletions tests/yaml_samples/info_2.kibot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Example KiBot config file
kibot:
version: 1

outputs:
- name: 'do_info'
comment: "Information about the run"
type: info
options:
environment: full

0 comments on commit 8c35fe6

Please sign in to comment.