Skip to content

Commit 3347c78

Browse files
committed
fix version
1 parent 81705af commit 3347c78

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/ansys/dpf/core/data_sources.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ def register_namespace(self, result_key: str, namespace: str):
680680
"""
681681
self._api.data_sources_register_namespace(self, result_key, namespace)
682682

683+
@version_requires("7.0")
683684
def namespace(self, result_key: str) -> str:
684685
"""
685686
Return the namespace associated to a result_key. The namespace identifies to which operator plugin a call should be delegated to.

tests/test_datasources.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def test_register_namespace(allkindofcomplexity, server_type):
176176
assert op.eval() is not None
177177

178178

179+
@conftest.raises_for_servers_version_under("7.0")
179180
def test_namespace(allkindofcomplexity, server_type):
180181
data_sources = dpf.core.DataSources(allkindofcomplexity, server=server_type)
181182
assert data_sources.namespace(data_sources.result_key) == "mapdl"

0 commit comments

Comments
 (0)