Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions tests/test_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,",
Expand Down
Loading