Files
my-pal-mcp-server/tests
Fahad b528598360 Add regression tests for Gemini parameter order bug
Adds two comprehensive tests to prevent future regression of the parameter
order bug in `restriction_service.is_allowed()` calls:

1. `test_gemini_parameter_order_regression_protection` - Tests edge case
   where only alias is allowed, ensuring correct parameter order
2. `test_gemini_parameter_order_edge_case_full_name_only` - Tests reverse
   scenario where only full model name is allowed

These tests specifically catch the subtle bug where parameters were
incorrectly passed as (provider, user_input, resolved_name) instead of
(provider, resolved_name, user_input). The bug was masked by OR logic
in most cases but could cause issues in edge scenarios.

All 498 tests pass, including the new regression protection tests.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-16 19:13:47 +04:00
..
2025-06-15 12:21:44 +04:00
2025-06-13 09:28:33 +04:00
2025-06-13 09:06:12 +04:00
2025-06-16 07:07:38 +04:00
2025-06-16 07:07:38 +04:00
2025-06-16 07:07:38 +04:00
2025-06-15 18:43:37 +04:00