From 065ad42ff326f5f99ec32143f90e0c43cbc1ea78 Mon Sep 17 00:00:00 2001 From: Art Cashin <64659740+artcashin@users.noreply.github.com> Date: Sat, 28 Nov 2026 23:57:28 +0000 Subject: [PATCH] fix(government_us): amendment text viewer opens on an amendment that has text (#7850) House amendments carry no published text, so the default 119-hamdt-2 opened an empty viewer. The default is now 119-samdt-2. Co-authored-by: Claude Fable 5.2 Co-authored-by: dlee-bq --- .../openbb_government_us/congress/congress_router.py | 4 ++-- .../government_us/tests/test_widget_invariants.py | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/openbb_platform/providers/government_us/openbb_government_us/congress/congress_router.py b/openbb_platform/providers/government_us/openbb_government_us/congress/congress_router.py index 0f41b0eb6f0..4be7a8feb00 100644 --- a/openbb_platform/providers/government_us/openbb_government_us/congress/congress_router.py +++ b/openbb_platform/providers/government_us/openbb_government_us/congress/congress_router.py @@ -584,12 +584,12 @@ async def amendments( }, { "label": "Amendment ID", - "description": "Enter an amendment id (e.g. '119-hamdt-2'), or group" + "description": "Enter an amendment id (e.g. '119-samdt-2'), or group" + " the 'Congressional Amendments' widget by 'Amendment ID' and" + " click a cell.", "show": True, "paramName": "amendment_id", - "value": "119-hamdt-2", + "value": "119-samdt-2", }, ], "refetchInterval": False, diff --git a/openbb_platform/providers/government_us/tests/test_widget_invariants.py b/openbb_platform/providers/government_us/tests/test_widget_invariants.py index 311f456a6a3..527b552f8f3 100644 --- a/openbb_platform/providers/government_us/tests/test_widget_invariants.py +++ b/openbb_platform/providers/government_us/tests/test_widget_invariants.py @@ -372,3 +372,14 @@ class TestNoDuplicatePlacements: if widget["i"] not in ids ] assert not offenders, f"layout references unbuilt widgets: {offenders}" + + +def test_amendment_text_viewer_opens_on_an_amendment_with_text(built): + """House amendments carry no published text, so the default is a Senate one.""" + config = next( + config + for _, widget_id, config in built + if widget_id == "uscongress_amendment_text_congress_gov_obb" + ) + values = {p["paramName"]: p.get("value") for p in config["params"]} + assert values["amendment_id"] == "119-samdt-2"