Skip to content

Commit 8e6aaca

Browse files
authored
Adding more explanations to the license parameter. (#351)
1 parent 630c41a commit 8e6aaca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arango/database.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def set_license(self, license: str, force: bool = False) -> Result[Json]:
436436
instance. Can be called on single servers, Coordinators,
437437
and DB-Servers.
438438
439-
:param license: The Base64-encoded license string.
439+
:param license: The Base64-encoded license string, wrapped in double-quotes.
440440
:type license: str
441441
:param force: If set to True, the new license will be set even if
442442
it expires sooner than the current license.

tests/test_database.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def test_license(sys_db, enterprise):
454454
else:
455455
assert license == {"license": "none"}
456456
with pytest.raises(ServerLicenseSetError):
457-
sys_db.set_license("abc")
457+
sys_db.set_license('"abc"')
458458

459459

460460
def test_options(sys_db, db_version):

0 commit comments

Comments
 (0)