From 8e6aaca37e859d44fd84443d4286fd772551ec17 Mon Sep 17 00:00:00 2001 From: Alex Petenchea Date: Thu, 17 Oct 2024 11:16:30 +0300 Subject: [PATCH] Adding more explanations to the license parameter. (#351) --- 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 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):