fix(test): remove duplicate verbose_logger mock in test_check_migration

The logger was patched twice — first via mocker.patch() then via
mocker.patch.object(autospec=True). The second call fails because
autospec cannot inspect an already-mocked attribute. Remove the
redundant first patch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
user 2026-04-09 18:12:22 +00:00
parent 7d507c4be6
commit 13f536c599
No known key found for this signature in database

View file

@ -20,10 +20,8 @@ def test_check_migration_out_of_sync(mocker):
# assignment.
from litellm.proxy.db import check_migration
mock_logger = mocker.patch("litellm.proxy.db.check_migration.verbose_logger")
# Mock the helper function to simulate out-of-sync state
mocker.patch.object(
mock_logger = mocker.patch.object(
check_migration,
"verbose_logger",
autospec=True,