Skip to content

Commit 15c728d

Browse files
committed
fix ut for docker
1 parent 70f186e commit 15c728d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_plugins.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from conftest import SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_5_0
66
from ansys.dpf import core as dpf
7+
from ansys.dpf.core import examples
78

89

910
@pytest.fixture()
@@ -81,17 +82,17 @@ def test_cgns(server_type):
8182

8283
@pytest.mark.skipif(not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_5_0,
8384
reason='Requires server version higher than 5.0')
84-
def test_vtk(server_type, simple_bar, tmpdir):
85+
def test_vtk(server_type, tmpdir):
8586
op = dpf.Operator("vtu_export", server=server_type)
8687
try:
87-
rst_file = dpf.upload_file_in_tmp_folder(simple_bar, server=server_type)
88+
rst_file = dpf.upload_file_in_tmp_folder(examples.download_pontoon(return_local_path=True)
89+
, server=server_type)
8890
except dpf.errors.ServerTypeError as e:
8991
print(e)
90-
rst_file = simple_bar
92+
rst_file = examples.download_pontoon(return_local_path=True)
9193
pass
9294

9395
assert op is not None
94-
tmp_path = str(tmpdir.join("simple_bar.vtu"))
9596
model = dpf.Model(rst_file, server=server_type)
9697
u = model.operator("U")
9798
op.inputs.fields1.connect(u)

0 commit comments

Comments
 (0)