Skip to content

Commit eafafca

Browse files
Update generated code for DPF 271_daily on main (#2978)
Co-authored-by: Rafael Canton <[email protected]>
1 parent e608227 commit eafafca

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tests/test_field.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
from ansys.dpf.core.common import locations, shell_layers
3535
from ansys.dpf.gate.errors import DPFServerException, DpfVersionNotSupported
3636
import conftest
37-
from conftest import SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_0, running_docker
37+
from conftest import (
38+
SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_0,
39+
SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_12_0,
40+
running_docker,
41+
)
3842

3943

4044
@pytest.fixture()
@@ -499,7 +503,10 @@ def test_shell_layers_2(velocity_acceleration):
499503
model = dpf.core.Model(velocity_acceleration)
500504
stress = model.results.stress()
501505
f = stress.outputs.fields_container()[0]
502-
assert f.shell_layers == shell_layers.nonelayer
506+
if SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_12_0:
507+
assert f.shell_layers == shell_layers.top
508+
else:
509+
assert f.shell_layers == shell_layers.nonelayer
503510

504511

505512
def test_mesh_support_field_model(allkindofcomplexity):

0 commit comments

Comments
 (0)