File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
from conftest import SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_5_0
6
6
from ansys .dpf import core as dpf
7
+ from ansys .dpf .core import examples
7
8
8
9
9
10
@pytest .fixture ()
@@ -81,17 +82,17 @@ def test_cgns(server_type):
81
82
82
83
@pytest .mark .skipif (not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_5_0 ,
83
84
reason = 'Requires server version higher than 5.0' )
84
- def test_vtk (server_type , simple_bar , tmpdir ):
85
+ def test_vtk (server_type , tmpdir ):
85
86
op = dpf .Operator ("vtu_export" , server = server_type )
86
87
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 )
88
90
except dpf .errors .ServerTypeError as e :
89
91
print (e )
90
- rst_file = simple_bar
92
+ rst_file = examples . download_pontoon ( return_local_path = True )
91
93
pass
92
94
93
95
assert op is not None
94
- tmp_path = str (tmpdir .join ("simple_bar.vtu" ))
95
96
model = dpf .Model (rst_file , server = server_type )
96
97
u = model .operator ("U" )
97
98
op .inputs .fields1 .connect (u )
You can’t perform that action at this time.
0 commit comments