diff --git a/arango/database.py b/arango/database.py index 62ccab3..17d7a12 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 1a71640..0b1d975 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):