style: fix formatting in Gemini OAuth regression tests

This commit is contained in:
Artem
2026-03-09 16:47:09 +03:00
parent b35771d505
commit 4a2950e777
+11 -3
View File
@@ -5,10 +5,18 @@ fn test_regression_gemini_oauth_fields() {
// This test ensures that the CompletionResponse and ToolCompletionResponse
// include the newly added caching fields, which was a critical compilation fix.
// Since we are using the public API, if it compiles and runs, the fields are present.
// Test model metadata logic (which we updated)
assert!(!ironclaw::llm::gemini_oauth::GeminiOauthProvider::model_uses_cloud_code_api("gemini-1.5-pro"));
assert!(ironclaw::llm::gemini_oauth::GeminiOauthProvider::model_uses_cloud_code_api("gemini-2.0-flash"));
assert!(
!ironclaw::llm::gemini_oauth::GeminiOauthProvider::model_uses_cloud_code_api(
"gemini-1.5-pro"
)
);
assert!(
ironclaw::llm::gemini_oauth::GeminiOauthProvider::model_uses_cloud_code_api(
"gemini-2.0-flash"
)
);
}
#[tokio::test]