Skip to content

Commit 29f3e88

Browse files
authored
Adapt tests to stricter units handling (#619)
1 parent 4befd0e commit 29f3e88

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/unittests/test_model.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import pytest
3232
import pyvista
3333

34-
from ansys.acp.core import ElementalDataType, VectorData
34+
from ansys.acp.core import ElementalDataType, UnitSystemType, VectorData
3535

3636
from .helpers import check_property
3737

@@ -152,7 +152,10 @@ def test_string_representation(acp_instance, model_data_dir):
152152
input_file_path = model_data_dir / "ACP-Pre.h5"
153153
remote_file_path = acp_instance.upload_file(input_file_path)
154154
model = acp_instance.import_model(
155-
name="minimal_model", path=remote_file_path, format="ansys:cdb"
155+
name="minimal_model",
156+
path=remote_file_path,
157+
format="ansys:cdb",
158+
unit_system=UnitSystemType.MKS,
156159
)
157160

158161
assert repr(model) == "<Model with name 'minimal_model'>"

0 commit comments

Comments
 (0)