Skip to content

Commit a6f56be

Browse files
committed
fix: tests
1 parent ae9ac3a commit a6f56be

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/test_settings_api.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
from ansys.fluent.core import config
2929
from ansys.fluent.core.examples import download_file
3030
from ansys.fluent.core.pyfluent_warnings import PyFluentUserWarning
31-
from ansys.fluent.core.solver import Viscous
31+
from ansys.fluent.core.solver import VelocityInlets, Viscous
3232
from ansys.fluent.core.solver.flobject import (
3333
DeprecatedSettingWarning,
34+
NamedObject,
3435
_Alias,
3536
_InputFile,
3637
_OutputFile,
@@ -798,7 +799,9 @@ def test_setting_string_constants(mixing_elbow_settings_session):
798799
@pytest.mark.fluent_version(">=24.2")
799800
def test_named_object_commands(mixing_elbow_settings_session):
800801
solver = mixing_elbow_settings_session
801-
solver.settings.setup.boundary_conditions.velocity_inlet.list()
802-
solver.settings.setup.boundary_conditions.velocity_inlet.list_properties(
803-
object_name="hot-inlet"
804-
)
802+
inlets = VelocityInlets(solver)
803+
inlets.list()
804+
inlets.list_properties(object_name="hot-inlet")
805+
if solver.get_fluent_version() >= FluentVersion.v261:
806+
NamedObject.list(inlets)
807+
NamedObject.list_properties(inlets, object_name="hot-inlet")

0 commit comments

Comments
 (0)