From 8954d3e4f4330be4aa744b7d222c41eba053169f Mon Sep 17 00:00:00 2001 From: Alex Petenchea Date: Wed, 16 Oct 2024 13:27:06 +0300 Subject: [PATCH] Adding more explanations to the license parameter. --- arango/database.py | 2 +- tests/test_database.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arango/database.py b/arango/database.py index 62ccab34..17d7a124 100644 --- a/arango/database.py +++ b/arango/database.py @@ -436,7 +436,7 @@ def set_license(self, license: str, force: bool = False) -> Result[Json]: instance. Can be called on single servers, Coordinators, and DB-Servers. - :param license: The Base64-encoded license string. + :param license: The Base64-encoded license string, wrapped in double-quotes. :type license: str :param force: If set to True, the new license will be set even if it expires sooner than the current license. diff --git a/tests/test_database.py b/tests/test_database.py index 1a716400..0b1d9752 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -454,7 +454,7 @@ def test_license(sys_db, enterprise): else: assert license == {"license": "none"} with pytest.raises(ServerLicenseSetError): - sys_db.set_license("abc") + sys_db.set_license('"abc"') def test_options(sys_db, db_version):