From 1d85befd9bdf9facc9e6d18f4ce47e7925a01389 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 26 May 2020 13:31:08 -0300 Subject: [PATCH] Added test for missing comment in output section --- tests/test_plot/test_position.py | 2 ++ tests/yaml_samples/simple_position_csv.kiplot.yaml | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_plot/test_position.py b/tests/test_plot/test_position.py index 58a4b340..c0b99c52 100644 --- a/tests/test_plot/test_position.py +++ b/tests/test_plot/test_position.py @@ -7,6 +7,7 @@ We test (both CSV and ASCII): - Unified file, mm, only SMD - Unified file, mm, not only SMD - Separated files, inches, only SMD +- Also test a case without 'comment' field For debug information use: pytest-3 --log-cli-level debug @@ -99,6 +100,7 @@ def test_3Rs_position_inches(): def test_3Rs_position_csv(): + """ Also test a case without comment """ ctx = context.TestContext('3Rs_position_csv', '3Rs', 'simple_position_csv', POS_DIR) ctx.run() pos_top = ctx.get_pos_top_csv_filename() diff --git a/tests/yaml_samples/simple_position_csv.kiplot.yaml b/tests/yaml_samples/simple_position_csv.kiplot.yaml index 0a736b0a..393430f3 100644 --- a/tests/yaml_samples/simple_position_csv.kiplot.yaml +++ b/tests/yaml_samples/simple_position_csv.kiplot.yaml @@ -5,7 +5,6 @@ kiplot: outputs: - name: 'position' - comment: "Pick and place file" type: position dir: positiondir options: