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"