Update tests/test_litellm/proxy/hooks/test_proxy_hooks_init.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Shreehitha Arushan 2026-08-25 16:28:01 +05:30 • committed by GitHub
parent 8242f5bd19
commit 54c930d2ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,6 +81,6 @@ def test_enterprise_hooks_import_failure_logs_warning(monkeypatch, caplog):
for record in caplog.records
), "Expected a warning to be logged when enterprise hooks import fails"
monkeypatch.undo()
monkeypatch.setattr(builtins, "__import__", real_import)
sys.modules.pop("litellm.proxy.hooks", None)
importlib.import_module("litellm.proxy.hooks")