From d91bc3fb8e0eca2a89932f8d7839ed6c69c37ee8 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sun, 15 Nov 2026 21:15:28 -0800 Subject: [PATCH] test(messages): use rstest for the new bedrock invoke thinking tests --- litellm/rust/crates/inference-messages/src/handler.rs | 1 + .../invoke_transformations/anthropic_claude_transformation.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/rust/crates/inference-messages/src/handler.rs b/litellm/rust/crates/inference-messages/src/handler.rs index 2ba2a3aae32..108e939d415 100644 --- a/litellm/rust/crates/inference-messages/src/handler.rs +++ b/litellm/rust/crates/inference-messages/src/handler.rs @@ -1988,6 +1988,7 @@ mod tests { ); } + #[rstest] #[tokio::test] async fn the_native_output_retry_drops_unsigned_thinking_too() { let model = "bedrock/invoke/us.anthropic.claude-sonnet-5-5-v1:0"; diff --git a/litellm/rust/crates/llms/src/bedrock/messages/invoke_transformations/anthropic_claude_transformation.rs b/litellm/rust/crates/llms/src/bedrock/messages/invoke_transformations/anthropic_claude_transformation.rs index d8356fe7825..3b4d34d2725 100644 --- a/litellm/rust/crates/llms/src/bedrock/messages/invoke_transformations/anthropic_claude_transformation.rs +++ b/litellm/rust/crates/llms/src/bedrock/messages/invoke_transformations/anthropic_claude_transformation.rs @@ -861,7 +861,7 @@ mod tests { ); } - #[test] + #[rstest] fn unsigned_thinking_is_dropped_and_signed_thinking_kept() { let unsigned = serde_json::json!({"type": "thinking", "thinking": "Read it first.", "signature": ""});