@@ -112,62 +112,62 @@ def test_repr_available_results_list(model):
112112 assert dpf .core .result_info .available_result .AvailableResult .__name__ in str (ar )
113113
114114
115- @pytest .mark .skipif (
116- not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0 , reason = "Available with CFF starting 7.0"
117- )
118- def test_print_available_result_with_qualifiers (cfx_heating_coil , server_type ):
119- model = Model (cfx_heating_coil (server = server_type ), server = server_type )
120- ref = """DPF Result
121- ----------
122- specific_heat
123- Operator name: "CP"
124- Number of components: 1
125- Dimensionality: scalar
126- Homogeneity: specific_heat
127- Units: J/kg*K^-1
128- Location: Nodal
129- Available qualifier labels:""" # noqa: E501
130- ref2 = "'phase': 2"
131- if SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_0 :
132- ref3 = "'zone': 11"
133- else :
134- ref3 = "'zone': 5"
135- ar = model .metadata .result_info .available_results [0 ]
136- got = str (ar )
137- assert ref in got
138- assert ref2 in got
139- assert ref3 in got
140- if SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_0 :
141- assert len (ar .qualifier_combinations ) == 18
142- else :
143- assert len (ar .qualifier_combinations ) == 20
144-
145-
146- @pytest .mark .skipif (
147- not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0 , reason = "Available with CFF starting 7.0"
148- )
149- def test_print_result_info_with_qualifiers (cfx_heating_coil , server_type ):
150- model = Model (cfx_heating_coil (server = server_type ), server = server_type )
151- ref = """Static analysis
152- Unit system: SI: m, kg, N, s, V, A, K
153- Physics Type: Fluid
154- Available results:
155- - specific_heat: Nodal Specific Heat
156- - epsilon: Nodal Epsilon
157- - enthalpy: Nodal Enthalpy
158- - turbulent_kinetic_energy: Nodal Turbulent Kinetic Energy
159- - thermal_conductivity: Nodal Thermal Conductivity
160- - dynamic_viscosity: Nodal Dynamic Viscosity
161- - turbulent_viscosity: Nodal Turbulent Viscosity
162- - static_pressure: Nodal Static Pressure
163- - total_pressure: Nodal Total Pressure
164- - density: Nodal Density
165- - entropy: Nodal Entropy
166- - temperature: Nodal Temperature
167- - total_temperature: Nodal Total Temperature
168- - velocity: Nodal Velocity
169- Available qualifier labels:""" # noqa
170- assert ref in str (model .metadata .result_info )
115+ # @pytest.mark.skipif(
116+ # not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0, reason="Available with CFF starting 7.0"
117+ # )
118+ # def test_print_available_result_with_qualifiers(cfx_heating_coil, server_type):
119+ # model = Model(cfx_heating_coil(server=server_type), server=server_type)
120+ # ref = """DPF Result
121+ # ----------
122+ # specific_heat
123+ # Operator name: "CP"
124+ # Number of components: 1
125+ # Dimensionality: scalar
126+ # Homogeneity: specific_heat
127+ # Units: J/kg*K^-1
128+ # Location: Nodal
129+ # Available qualifier labels:""" # noqa: E501
130+ # ref2 = "'phase': 2"
131+ # if SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_0:
132+ # ref3 = "'zone': 11"
133+ # else:
134+ # ref3 = "'zone': 5"
135+ # ar = model.metadata.result_info.available_results[0]
136+ # got = str(ar)
137+ # assert ref in got
138+ # assert ref2 in got
139+ # assert ref3 in got
140+ # if SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_0:
141+ # assert len(ar.qualifier_combinations) == 18
142+ # else:
143+ # assert len(ar.qualifier_combinations) == 20
144+
145+
146+ # @pytest.mark.skipif(
147+ # not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0, reason="Available with CFF starting 7.0"
148+ # )
149+ # def test_print_result_info_with_qualifiers(cfx_heating_coil, server_type):
150+ # model = Model(cfx_heating_coil(server=server_type), server=server_type)
151+ # ref = """Static analysis
152+ # Unit system: SI: m, kg, N, s, V, A, K
153+ # Physics Type: Fluid
154+ # Available results:
155+ # - specific_heat: Nodal Specific Heat
156+ # - epsilon: Nodal Epsilon
157+ # - enthalpy: Nodal Enthalpy
158+ # - turbulent_kinetic_energy: Nodal Turbulent Kinetic Energy
159+ # - thermal_conductivity: Nodal Thermal Conductivity
160+ # - dynamic_viscosity: Nodal Dynamic Viscosity
161+ # - turbulent_viscosity: Nodal Turbulent Viscosity
162+ # - static_pressure: Nodal Static Pressure
163+ # - total_pressure: Nodal Total Pressure
164+ # - density: Nodal Density
165+ # - entropy: Nodal Entropy
166+ # - temperature: Nodal Temperature
167+ # - total_temperature: Nodal Total Temperature
168+ # - velocity: Nodal Velocity
169+ # Available qualifier labels:""" # noqa
170+ # assert ref in str(model.metadata.result_info)
171171
172172
173173@pytest .mark .skipif (True , reason = "Used to test memory leaks" )
0 commit comments