From c9c179739e11f2f9c50b1dd5d9f8528e2cd8fdd9 Mon Sep 17 00:00:00 2001 From: PProfizi Date: Mon, 29 Sep 2025 10:30:31 +0200 Subject: [PATCH 1/2] Add pytest fixture fluent_axial_comp_flprj --- tests/conftest.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index f241ee23aa4..3859568b20a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -254,6 +254,20 @@ def return_ds(server=None): return return_ds +@pytest.fixture() +def fluent_axial_comp_flprj(): + """Return a function which creates a data sources + with a 'flrpj' file of fluent axial compressor case.""" + + def return_ds(server=None): + ds = core.DataSources(server=server) + files = examples.download_fluent_axial_comp(server=server) + ds.set_result_file_path(files["flprj"], "flprj") + return ds + + return return_ds + + @pytest.fixture() def fluent_mixing_elbow_steady_state(): """Return a function which creates a data sources From 270402d118c18762493181309eb26257c7b65551 Mon Sep 17 00:00:00 2001 From: PProfizi Date: Mon, 29 Sep 2025 10:36:47 +0200 Subject: [PATCH 2/2] Add test_cff_model_flprj --- tests/test_cff.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/test_cff.py b/tests/test_cff.py index 5c0c4fdb036..1c125e1e7c3 100644 --- a/tests/test_cff.py +++ b/tests/test_cff.py @@ -39,6 +39,19 @@ def test_cff_model(server_type, fluent_multi_species): assert "faces" in str(mesh) +@pytest.mark.skipif( + not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0, + reason="CFF source operators where not supported before 7.0,", +) +def test_cff_model_flprj(server_type, fluent_axial_comp_flprj): + ds = fluent_axial_comp_flprj(server_type) + model = dpf.Model(ds, server=server_type) + assert model is not None + assert "fluid" in str(model) + mesh_info = model.metadata.mesh_info + assert "faces" in str(mesh_info) + + @pytest.mark.skipif( not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0, reason="CFF source operators where not supported before 7.0,",