Skip to content

Commit 42c4fdc

Browse files
committed
Minimize backup tests
1 parent c88f60e commit 42c4fdc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/test_backup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
from packaging import version
23

34
from arangoasync.client import ArangoClient
45
from arangoasync.exceptions import (
@@ -12,9 +13,15 @@
1213

1314

1415
@pytest.mark.asyncio
15-
async def test_backup(url, sys_db_name, bad_db, token, enterprise):
16+
async def test_backup(url, sys_db_name, bad_db, token, enterprise, cluster, db_version):
1617
if not enterprise:
1718
pytest.skip("Backup API is only available in ArangoDB Enterprise Edition")
19+
if not cluster:
20+
pytest.skip("For simplicity, the backup API is only tested in cluster setups")
21+
if db_version < version.parse("3.12.0"):
22+
pytest.skip(
23+
"For simplicity, the backup API is only tested in the latest versions"
24+
)
1825

1926
with pytest.raises(BackupCreateError):
2027
await bad_db.backup.create()

0 commit comments

Comments
 (0)