From 9dce7787b1eb12c1933400eb94efaf87fb464028 Mon Sep 17 00:00:00 2001 From: claudi Date: Fri, 20 Feb 2026 10:38:06 +0100 Subject: [PATCH] fix: Update parameter names in examples and tests for consistency with API specification --- examples/legacy_rest_api_examples.py | 6 +++--- tests/test_rest_api.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/legacy_rest_api_examples.py b/examples/legacy_rest_api_examples.py index 99be68c..022ee72 100644 --- a/examples/legacy_rest_api_examples.py +++ b/examples/legacy_rest_api_examples.py @@ -98,7 +98,7 @@ def example_4_job_with_parameters(): } }, additional_reference="example-import-en" - ) + ) # Note: parameters is nested dict following API spec print(f"Job started with parameters:") print(f" Job Identifier: {result.jobIdentifier}") @@ -132,8 +132,8 @@ def example_5_queue_management(): result = client.control_job( job_id=123, action="start", - queueId=queue_id, - maxJobDurationSeconds=3600, # 1 hour timeout per job + queue_id=queue_id, + max_job_duration_seconds=3600, # 1 hour timeout per job parameters={ "article_id": article["id"], "article_name": article["name"] diff --git a/tests/test_rest_api.py b/tests/test_rest_api.py index 60898fb..793dab2 100644 --- a/tests/test_rest_api.py +++ b/tests/test_rest_api.py @@ -48,7 +48,7 @@ class TestRestApiAuth: def test_api_token_auth_without_domain(self): """Test that API token auth requires a domain""" with pytest.raises(ValueError, match="Domain is required"): - RestApiAuth.from_api_token("admin", "token123", None) + RestApiAuth.from_api_token("admin", "token123", None) # type: ignore def test_json_body_params(self): """Test JSON body parameters"""