From d1fa5948740f26594527d297452a83fd169a868c Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Fri, 7 Feb 2025 15:30:02 -0800 Subject: [PATCH] fix test --- .../platform_api/openbb_platform_api/utils/openapi.py | 2 +- openbb_platform/extensions/platform_api/tests/mock_widgets.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_platform/extensions/platform_api/openbb_platform_api/utils/openapi.py b/openbb_platform/extensions/platform_api/openbb_platform_api/utils/openapi.py index 419d6a2a3ae..2a9f39a9d4e 100644 --- a/openbb_platform/extensions/platform_api/openbb_platform_api/utils/openapi.py +++ b/openbb_platform/extensions/platform_api/openbb_platform_api/utils/openapi.py @@ -226,7 +226,7 @@ def set_parameter_options(p: dict, p_schema: dict, providers: list[str]) -> dict if is_provider_specific: p["available_providers"] = list(available_providers) - if title := p_schema.get("title", ""): + if (title := p_schema.get("title", "")) and title not in providers: p["label"] = title return p diff --git a/openbb_platform/extensions/platform_api/tests/mock_widgets.json b/openbb_platform/extensions/platform_api/tests/mock_widgets.json index 91efb68f067..72df4909ada 100644 --- a/openbb_platform/extensions/platform_api/tests/mock_widgets.json +++ b/openbb_platform/extensions/platform_api/tests/mock_widgets.json @@ -2482,7 +2482,7 @@ "paramName": "release_id" }, { - "label": "Element Id", + "label": "Element ID", "description": "The element ID of a specific table in the release.", "optional": true, "value": null,