Skip to content

Commit 2a16fb3

Browse files
authored
Fix nightly (#2821)
* Fix test_clear * Changing value check * Downgrading ansys-dpf-core
1 parent 3618465 commit 2a16fb3

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.devcontainer/codespaces-dev/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansys-dpf-core==0.11.0
1+
ansys-dpf-core==0.10.1
22
autopep8==2.0.4
33
matplotlib==3.8.3
44
scipy==1.12.0

.devcontainer/codespaces-docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sphinx==7.2.6
2-
ansys-dpf-core==0.11.0
2+
ansys-dpf-core==0.10.1
33
ansys-mapdl-reader==0.53.0
44
ansys-sphinx-theme==0.14.0
55
grpcio==1.62.0

.devcontainer/devcontainer-local/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansys-dpf-core==0.11.0
1+
ansys-dpf-core==0.10.1
22
autopep8==2.0.4
33
matplotlib==3.8.3
44
scipy==1.12.0

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jupyter = [
6262
]
6363

6464
tests = [
65-
"ansys-dpf-core==0.11.0",
65+
"ansys-dpf-core==0.10.1",
6666
"autopep8==2.0.4",
6767
"matplotlib==3.8.3",
6868
"scipy==1.12.0",
@@ -79,7 +79,7 @@ tests = [
7979
]
8080
doc = [
8181
"sphinx==7.2.6",
82-
"ansys-dpf-core==0.11.0",
82+
"ansys-dpf-core==0.10.1",
8383
"ansys-mapdl-reader==0.53.0",
8484
"ansys-sphinx-theme==0.14.0",
8585
"grpcio==1.62.0",

tests/test_database.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ def test_clear(db):
150150
db._mapdl.prep7()
151151
db._mapdl.k(1, 1, 1, 1)
152152
db.clear()
153-
with pytest.raises(ValueError, match="There are no KEYPOINTS defined."):
154-
db._mapdl.get_value("KP", 0, "count")
153+
assert db._mapdl.get_value("KP", 0, "count") == 0.0
155154

156155

157156
def test_nodes_repr(nodes):

0 commit comments

Comments
 (0)