Skip to content

Commit 169fe6a

Browse files
test: Remove unneeded test
1 parent cb60c5b commit 169fe6a

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

.github/workflows/cicd.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jobs:
5959
username: ${{ secrets.GH_USERNAME }}
6060
password: ${{ secrets.GH_TOKEN }}
6161
env:
62-
ANSYS_LOCAL: true
6362
ON_UBUNTU: true
6463

6564
steps:

tests/path/integration/test_integration.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"""Module for integration tests."""
2323

2424
import json
25-
import os
2625
from pathlib import Path
2726

2827
import pytest
@@ -35,13 +34,8 @@
3534
)
3635
from ansys.tools.path.path import CONFIG_FILE
3736

38-
skip_if_not_ansys_local = pytest.mark.skipif(
39-
os.environ.get("ANSYS_LOCAL", "").upper() != "TRUE", reason="Skipping on CI"
40-
)
41-
4237

4338
@pytest.mark.requires_mapdl
44-
@skip_if_not_ansys_local
4539
def test_find_mapdl():
4640
"""Test that the function finds the MAPDL executable and returns its path and version."""
4741
bin_file, ver = find_mapdl()
@@ -50,14 +44,12 @@ def test_find_mapdl():
5044

5145

5246
@pytest.mark.requires_mapdl
53-
@skip_if_not_ansys_local
5447
def test_get_available_ansys_installation():
5548
"""Test that the function returns a list of available Ansys installations."""
5649
assert get_available_ansys_installations()
5750

5851

5952
@pytest.mark.requires_mapdl
60-
@skip_if_not_ansys_local
6153
@pytest.mark.linux
6254
def test_save_mapdl_path():
6355
"""Test saving the MAPDL path to the configuration file."""

tests/path/unit/test_metadata.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
# SOFTWARE.
2222
"""Module for testing metadata."""
2323

24-
import os
25-
2624
from ansys.tools import __version__
2725

2826

@@ -35,13 +33,3 @@ def test_pkg_version():
3533
read_version = importlib_metadata.version("ansys-tools-common")
3634

3735
assert __version__ == read_version
38-
39-
40-
def test_cicd_envvar():
41-
"""Test that the environment variable `ANSYS_LOCAL` exists and is set to True or False."""
42-
if not os.environ.get("ANSYS_LOCAL", ""):
43-
# env var does not exists
44-
raise RuntimeError(
45-
"The env var 'ANSYS_LOCAL' does not exists. That env var is needed to tell Pytest which\n"
46-
"tests should be run depending on if MAPDL is installed ('ANSYS_LOCAL'=True) or not."
47-
)

0 commit comments

Comments
 (0)