8000 Pregel is deprecated starting from 3.12 (#325) · arangodb/python-arango@f556d65 · GitHub
[go: up one dir, main page]

Skip to content

Commit f556d65

Browse files
authored
Pregel is deprecated starting from 3.12 (#325)
1 parent 92b5f94 commit f556d65

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/pregel.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Pregel
22
------
33

4+
.. warning::
5+
Starting from ArangoDB 3.12, the Pregel API has been dropped.
6+
Currently, the driver still supports it for the 3.10 and 3.11 versions, but note that it will be dropped eventually.
7+
48
Python-arango provides support for **Pregel**, ArangoDB module for distributed
59
iterative graph processing. For more information, refer to `ArangoDB manual`_.
610

tests/test_pregel.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@
1111
from tests.helpers import assert_raises, generate_string
1212

1313

14-
def test_pregel_attributes(db, username):
14+
def test_pregel_attributes(db, db_version, username):
15+
if db_version >= version.parse("3.12.0"):
16+
pytest.skip("Pregel is not tested in 3.12.0+")
17+
1518
assert db.pregel.context in ["default", "async", "batch", "transaction"]
1619
assert db.pregel.username == username
1720
assert db.pregel.db_name == db.name
1821
assert repr(db.pregel) == f"<Pregel in {db.name}>"
1922

2023

2124
def test_pregel_management(db, db_version, graph, cluster):
25+
if db_version >= version.parse("3.12.0"):
26+
pytest.skip("Pregel is not tested in 3.12.0+")
27+
2228
if cluster:
2329
pytest.skip("Not tested in a cluster setup")
2430

0 commit comments

Comments
 (0)
0