Files
litellm/tests/local_testing
yuneng-jiangandClaude Opus 4.6 968d7a3eca Fix test isolation: save/restore pre_call_rules and post_call_rules
test_post_call_rule_streaming in test_rules.py sets
litellm.post_call_rules but never cleans up. Since
pytest_collection_modifyitems sorts tests by name across modules,
the leaked rule causes failures in test_streaming.py,
test_register_model.py, and test_sagemaker.py.

Add pre_call_rules and post_call_rules to the isolate_litellm_state
fixture's save/restore and clear lists.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 13:28:14 -07:00
..
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-11-22 09:28:37 -08:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2026-02-20 17:29:16 -08:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-09-01 17:59:40 -07:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-09-01 17:04:47 -07:00
2025-10-25 10:19:24 -07:00
2025-10-25 16:46:29 -07:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-09-01 17:04:47 -07:00
2025-10-25 10:19:24 -07:00