Skip to content

Commit

Permalink
Changing value check
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Feb 27, 2024
1 parent 57bae7e commit 5e2fb87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 5e2fb87

Please sign in to comment.