Skip to content

Commit a768b3f

Browse files
committed
Add test_load_library_default_name (WIP)
1 parent a148f9f commit a768b3f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_plugins.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
from ansys.dpf import core as dpf
2828
from ansys.dpf.core import examples
29+
import conftest
2930
from conftest import SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_5_0
3031

3132

@@ -134,3 +135,13 @@ def test_vtk(server_type, tmpdir):
134135
# print(e)
135136
# pass
136137
# assert os.path.exists(tmp_path)
138+
139+
140+
def test_load_library_default_name(config_server_type):
141+
xml_path = Path(conftest.DEFAULT_ANSYS_PATH) / "dpf" / "utilities" / "DpfCustomDefined.xml"
142+
server_context = dpf.server_context.ServerContext(xml_path=str(xml_path))
143+
print(server_context)
144+
server = dpf.start_local_server(config=config_server_type, context=server_context)
145+
print(server.plugins)
146+
# TODO: fix use of custom XML at server startup. The above should only show grpc loaded
147+
# https://github.com/ansys/pydpf-core/issues/2666

0 commit comments

Comments
 (0)