From 7a132e06063d2a5d50b7f0b53468d1ac1cceb784 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 11 Jan 2024 09:45:56 -0300 Subject: [PATCH] [Tests][Added] Very simple THT 3D resistors test --- tests/test_plot/test_step.py | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/tests/test_plot/test_step.py b/tests/test_plot/test_step.py index 05c0653b..064ff738 100644 --- a/tests/test_plot/test_step.py +++ b/tests/test_plot/test_step.py @@ -156,17 +156,19 @@ def test_render_3d_variant_1(test_dir): ctx.clean_up(keep_project=True) -# @pytest.mark.slow -# @pytest.mark.pcbnew -# def test_render_3d_res_tht_1(test_dir): -# prj = 'resistor_tht' -# yaml = 'render_3d_tht_res_1' -# ctx = context.TestContext(test_dir, prj, yaml) -# ctx.run() # extra_debug=True -# # Check all outputs are there -# name = prj+'-3D_top.png' -# ctx.expect_out_file(name) -# ctx.clean_up(keep_project=True) +@pytest.mark.slow +@pytest.mark.pcbnew +@pytest.mark.skipif(context.ki5() or context.ki6(), reason="slow") +def test_render_3d_res_tht_1(test_dir): + """ Very naive test, just check if working """ + prj = 'resistor_tht' + yaml = 'render_3d_tht_res_1' + ctx = context.TestContext(test_dir, prj, yaml) + ctx.run() # extra_debug=True + # Check all outputs are there + name = prj+'-3D_top.png' + ctx.expect_out_file(name) + ctx.clean_up(keep_project=True) @pytest.mark.slow