From fdbaa7f9a22ad2427e0b6e0702a313b441eb3ce5 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Thu, 20 Jun 2024 18:03:25 +0200 Subject: [PATCH] Add test Signed-off-by: paul.profizi --- tests/test_datasources.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_datasources.py b/tests/test_datasources.py index 726735a753..6f4246967c 100644 --- a/tests/test_datasources.py +++ b/tests/test_datasources.py @@ -60,7 +60,6 @@ def test_setresultpath_data_sources_no_extension(d3plot_beam, binout_glstat, ser def test_set_resultpath_data_sources_h5(server_type): from ansys.dpf.core import examples cas_h5_file = examples.download_fluent_axial_comp(server=server_type)["cas"][0] - print(cas_h5_file) data_sources = dpf.core.DataSources(server=server_type) data_sources.set_result_file_path(cas_h5_file) assert data_sources.result_key == "cas" @@ -71,7 +70,6 @@ def test_set_resultpath_data_sources_h5(server_type): def test_set_resultpath_data_sources_cff(server_type): from ansys.dpf.core import examples cas_h5_file = examples.download_cfx_heating_coil(server=server_type)["cas"] - print(cas_h5_file) data_sources = dpf.core.DataSources(server=server_type) data_sources.set_result_file_path(cas_h5_file) assert data_sources.result_key == "cas" @@ -79,6 +77,14 @@ def test_set_resultpath_data_sources_cff(server_type): assert data_sources.result_key == "cas" +def test_set_resultpath_data_sources_cfx_res(server_type): + from ansys.dpf.core import examples + res_file = examples.download_cfx_mixing_elbow(server=server_type) + data_sources = dpf.core.DataSources(server=server_type) + data_sources.set_result_file_path(res_file) + assert data_sources.result_key == "cas" + + def test_addupstream_data_sources(allkindofcomplexity, server_type): data_sources = dpf.core.DataSources(server=server_type) data_sources2 = dpf.core.DataSources(server=server_type)