diff --git a/doc/changelog.d/3384.added.md b/doc/changelog.d/3384.added.md new file mode 100644 index 0000000000..c0b5c5e400 --- /dev/null +++ b/doc/changelog.d/3384.added.md @@ -0,0 +1 @@ +chore: skip database testing on v23.X \ No newline at end of file diff --git a/tests/test_database.py b/tests/test_database.py index 6630b10281..39417dd684 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -28,7 +28,6 @@ ## Checking MAPDL versions from ansys.mapdl.core.database import MINIMUM_MAPDL_VERSION, DBDef, MapdlDb -from ansys.mapdl.core.database.database import FAILING_DATABASE_MAPDL from ansys.mapdl.core.errors import MapdlRuntimeError, MapdlVersionError from ansys.mapdl.core.misc import random_string from conftest import ON_CI @@ -43,7 +42,6 @@ def db(mapdl): pytest.skip("Requires 'ansys.api.mapdl' package to at least v0.5.1.") ## Checking MAPDL versions - mapdl_version = str(mapdl.version) if not server_meets_version(mapdl_version, MINIMUM_MAPDL_VERSION): pytest.skip( @@ -51,17 +49,11 @@ def db(mapdl): ) ## Exceptions - # Exception for 22.2 - if mapdl_version == "22.2" and ON_CI: + if mapdl_version in ["22.2", "23.1", "23.2", "24.1", "24.2", "25.1"] and ON_CI: pytest.skip( f"This MAPDL version ({mapdl_version}) docker image seems to not support DB, but local does." ) - if mapdl_version in ["24.1", "24.2", "25.1"]: - pytest.skip( - f"This MAPDL version ({mapdl_version}) does not support PyMAPDL Database." - ) - if mapdl._server_version < (0, 4, 1): # 2021R2 ver_ = ".".join([str(each) for each in mapdl._server_version]) pytest.skip( @@ -112,17 +104,12 @@ def test_database_start_stop(mapdl): f"This MAPDL version ({mapdl_version}) is not compatible with the Database module." ) - # Exception for 22.2 - if mapdl_version == "22.2" and ON_CI: + # Exceptions + if mapdl_version in ["22.2", "23.1", "23.2", "24.1", "24.2", "25.1"] and ON_CI: pytest.skip( f"This MAPDL version ({mapdl_version}) docker image seems to not support DB, but local does." ) - if mapdl_version in FAILING_DATABASE_MAPDL: - pytest.skip( - f"This MAPDL version ({mapdl_version}) docker image does not support Database module." - ) - # verify it can be created twice mapdl.prep7() for _ in range(2):