From 5e2fb87bc02580e57606c149f336673425afbc5a Mon Sep 17 00:00:00 2001 From: German Date: Tue, 27 Feb 2024 15:01:57 +0100 Subject: [PATCH] Changing value check --- tests/test_database.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_database.py b/tests/test_database.py index 8737a31b68..fe24c729d7 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -28,7 +28,7 @@ ## Checking MAPDL versions from ansys.mapdl.core.database import MINIMUM_MAPDL_VERSION, DBDef, MapdlDb -from ansys.mapdl.core.errors import MapdlError, MapdlRuntimeError +from ansys.mapdl.core.errors import MapdlRuntimeError from ansys.mapdl.core.misc import random_string from conftest import ON_CI @@ -150,8 +150,7 @@ def test_clear(db): db._mapdl.prep7() db._mapdl.k(1, 1, 1, 1) db.clear() - with pytest.raises(MapdlError, match="There are no KEYPOINTS defined."): - db._mapdl.get_value("KP", 0, "count") + assert db._mapdl.get_value("KP", 0, "count") == 0.0 def test_nodes_repr(nodes):