Skip to content

Commit d1a69f7

Browse files
TEST: Avoid skipping and disable plot (#6889)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 4c6ee72 commit d1a69f7

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/ci_cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,10 @@ jobs:
604604
with:
605605
max_attempts: 2
606606
retry_on: error
607-
timeout_minutes: 40
607+
timeout_minutes: 60
608608
command: |
609609
.venv\Scripts\Activate.ps1
610-
pytest ${{ env.PYTEST_ARGUMENTS }} -n 4 --dist loadfile --timeout=600 -m visualization -x
610+
pytest ${{ env.PYTEST_ARGUMENTS }} -n 3 --dist loadfile --timeout=600 -m visualization -x
611611
612612
- uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
613613
with:

doc/changelog.d/6889.test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Avoid skipping and disable plot

tests/system/visualization/test_46_FarField.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_04_far_field_data(self, local_scratch):
185185

186186
matplot_lib.traces_by_index[0].trace_style = "--"
187187
matplot_lib.x_scale = "log"
188-
_ = matplot_lib.plot_2d()
188+
_ = matplot_lib.plot_2d(show=False)
189189
matplot_lib.add_note(
190190
"Hello Pyaedt",
191191
[0, -10],
@@ -197,10 +197,10 @@ def test_04_far_field_data(self, local_scratch):
197197
matplot_lib.x_scale = "linear"
198198
matplot_lib.traces_by_index[0].trace_color = (1, 0, 0)
199199
matplot_lib.grid_enable_minor_x = True
200-
_ = matplot_lib.plot_2d()
200+
_ = matplot_lib.plot_2d(show=False)
201201

202202
matplot_lib.traces["Phi=-180"].symbol_style = "v"
203-
_ = matplot_lib.plot_2d()
203+
_ = matplot_lib.plot_2d(show=False)
204204

205205
matplot_lib.apply_style("dark_background")
206206
matplot_lib.add_limit_line(
@@ -210,18 +210,17 @@ def test_04_far_field_data(self, local_scratch):
210210
},
211211
name="LimitLine1",
212212
)
213-
_ = matplot_lib.plot_2d()
213+
_ = matplot_lib.plot_2d(show=False)
214214

215215
matplot_lib.traces_by_index[0].trace_color = (1, 0, 0)
216216
matplot_lib.grid_enable_minor_x = True
217217

218218
matplot_lib.grid_enable_minor_x = False
219219
matplot_lib.grid_enable_minor_y = False
220220

221-
_ = matplot_lib.plot_2d()
221+
_ = matplot_lib.plot_2d(show=False)
222222

223223
@pytest.mark.avoid_ansys_load
224-
@pytest.mark.skip(reason="Skipping antenna plot test for now. To be investigated later.")
225224
def test_05_antenna_plot(self, array_test):
226225
ffdata = array_test.get_antenna_data(sphere="3D")
227226
assert ffdata.setup_name == "Setup1 : LastAdaptive"
@@ -283,7 +282,6 @@ def test_05_antenna_plot(self, array_test):
283282
ffdata.farfield_data.plot_3d(quantity="RealizedGain", output_file=img5, show=False)
284283
assert os.path.exists(img5)
285284

286-
@pytest.mark.skip(reason="Skipping for now, to be investigated later.")
287285
def test_06_farfield_exporter(self, array_test):
288286
ffdata = FfdSolutionDataExporter(
289287
array_test, sphere_name="Infinite Sphere1", setup_name="Setup1 : LastAdaptive", frequencies=["3.5GHz"]

0 commit comments

Comments
 (0)