Skip to content

Commit

Permalink
Pregel is deprecated starting from 3.12 (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
apetenchea committed Feb 6, 2024
1 parent 92b5f94 commit f556d65
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/pregel.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Pregel
------

.. warning::
Starting from ArangoDB 3.12, the Pregel API has been dropped.
Currently, the driver still supports it for the 3.10 and 3.11 versions, but note that it will be dropped eventually.

Python-arango provides support for **Pregel**, ArangoDB module for distributed
iterative graph processing. For more information, refer to `ArangoDB manual`_.

Expand Down
8 changes: 7 additions & 1 deletion tests/test_pregel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@
from tests.helpers import assert_raises, generate_string


def test_pregel_attributes(db, username):
def test_pregel_attributes(db, db_version, username):
if db_version >= version.parse("3.12.0"):
pytest.skip("Pregel is not tested in 3.12.0+")

assert db.pregel.context in ["default", "async", "batch", "transaction"]
assert db.pregel.username == username
assert db.pregel.db_name == db.name
assert repr(db.pregel) == f"<Pregel in {db.name}>"


def test_pregel_management(db, db_version, graph, cluster):
if db_version >= version.parse("3.12.0"):
pytest.skip("Pregel is not tested in 3.12.0+")

if cluster:
pytest.skip("Not tested in a cluster setup")

Expand Down

0 comments on commit f556d65

Please sign in to comment.