Skip to content

Commit 0fe4424

Browse files
committed
Fixing cluster-only properties
1 parent 508cc88 commit 0fe4424

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_database.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
@pytest.mark.asyncio
23-
async def test_database_misc_methods(sys_db, db, bad_db):
23+
async def test_database_misc_methods(sys_db, db, bad_db, cluster):
2424
# Status
2525
status = await sys_db.status()
2626
assert status["server"] == "arango"
@@ -34,8 +34,10 @@ async def test_database_misc_methods(sys_db, db, bad_db):
3434
assert db_properties.is_system is False
3535
assert sys_properties.name == sys_db.name
3636
assert db_properties.name == db.name
37-
assert db_properties.replication_factor == 3
38-
assert db_properties.write_concern == 2
37+
if cluster:
38+
assert db_properties.replication_factor == 3
39+
assert db_properties.write_concern == 2
40+
3941
with pytest.raises(DatabasePropertiesError):
4042
await bad_db.properties()
4143
assert len(db_properties.format()) > 1

0 commit comments

Comments
 (0)