Files
my-pal-mcp-server/tests
Josh Vera 3d24226446 fix: Use monkeypatch for proper test isolation in model restrictions
Replace @patch.dict decorator with pytest monkeypatch fixture in
test_fallback_with_shorthand_restrictions to ensure proper environment
variable cleanup between tests. This prevents OPENAI_ALLOWED_MODELS
from leaking into subsequent tests.

Also remove the manual clearing of _restriction_service singleton
as it's no longer needed with proper environment variable isolation.

This fixes test isolation issues where o3-pro tests would fail when
run after restriction tests due to environment variable persistence.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-13 11:47:26 -06:00
..
2025-06-30 13:35:40 +04:00
2025-06-19 05:37:40 +04:00
2025-06-27 14:29:10 +04:00
2025-06-19 05:37:40 +04:00
2025-06-27 14:29:10 +04:00
2025-06-21 08:21:34 +04:00