diff --git a/puppy_kit/commands/incident.py b/puppy_kit/commands/incident.py index b567b9b..d71b762 100644 --- a/puppy_kit/commands/incident.py +++ b/puppy_kit/commands/incident.py @@ -728,7 +728,7 @@ def update_incident( "value": is_duplicate.capitalize(), } if needs_wrench_bot_check is not None: - field_data["NeedsWrenchBotCheck"] = { + field_data["needswrenchbotcheck"] = { "type": "dropdown", "value": needs_wrench_bot_check.capitalize(), } diff --git a/tests/commands/test_incident.py b/tests/commands/test_incident.py index f57e2a8..9e27cdc 100644 --- a/tests/commands/test_incident.py +++ b/tests/commands/test_incident.py @@ -454,7 +454,7 @@ def test_update_incident_needs_wrench_bot_check(self, mock_client, runner): assert "updated" in result.output _, kwargs = mock_patch.call_args sent_fields = kwargs["json"]["data"]["attributes"]["fields"] - assert sent_fields["NeedsWrenchBotCheck"] == {"type": "dropdown", "value": "Yes"} + assert sent_fields["needswrenchbotcheck"] == {"type": "dropdown", "value": "Yes"} class TestSetStatusIncident: