Skip to content

Commit ef79559

Browse files
committed
avoid running test on MDSplus when the backend is not available
1 parent 3660a01 commit ef79559

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ def pytest_addoption(parser):
7070
"hdf5": HDF5_BACKEND,
7171
"mdsplus": MDSPLUS_BACKEND,
7272
}
73+
try:
74+
from imas.db_entry import DBEntry
75+
from imas_core.exception import ImasCoreBackendException
76+
DBEntry("imas:mdsplus?path=dummy","r")
77+
except ImasCoreBackendException as iex:
78+
if "not available" in str(iex.message):
79+
_BACKENDS.pop("mdsplus")
7380

7481

7582
try:

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
# IMAS-Python
4444
repository_url = f"{iter_projects}/{src_project}/"
4545
blob_url = repository_url
46-
issue_url = jira_url = urljoin(repository_url, "/issues/")
47-
mr_url = urljoin(repository_url, "/pull/")
46+
issue_url = urljoin(repository_url, "issues/")
47+
mr_url = urljoin(repository_url, "pull/")
4848

4949

5050
# Configuration of sphinx.ext.extlinks

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ dependencies = [
6464
"packaging",
6565
"xxhash >= 2",
6666
"imas_data_dictionaries",
67-
"imas_core>=5.5.3"
67+
"imas_core"
6868
]
6969

7070
[project.optional-dependencies]

0 commit comments

Comments
 (0)