Skip to content

Commit a77e76f

Browse files
authored
Database "path" property is no longer available in 4.0 (#396)
* 4.0: path property is no longer available in 4.0 * update circleci resource_class
1 parent ea9c386 commit a77e76f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ executors:
44
python-container:
55
docker:
66
- image: cimg/python:3.12
7-
resource_class: small
7+
resource_class: arangodb/small-amd64
88
python-vm:
99
machine:
1010
image: ubuntu-2404:current
@@ -26,7 +26,7 @@ workflows:
2626
jobs:
2727
lint:
2828
executor: python-container
29-
resource_class: small
29+
resource_class: arangodb/small-amd64
3030
steps:
3131
- checkout
3232
- run:

tests/test_database.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ def test_database_misc_methods(client, sys_db, db, bad_db, cluster, secret, db_v
7373
# Test get properties
7474
properties = db.properties()
7575
assert "id" in properties
76-
assert "path" in properties
76+
77+
if db_version < version.parse("4.0"):
78+
assert "path" in properties
79+
7780
assert properties["name"] == db.name
7881
assert properties["system"] is False
7982

0 commit comments

Comments
 (0)