File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 3434from ansys .dpf .core .common import locations , shell_layers
3535from ansys .dpf .gate .errors import DPFServerException , DpfVersionNotSupported
3636import 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
505512def test_mesh_support_field_model (allkindofcomplexity ):
You can’t perform that action at this time.
0 commit comments