mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
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:
parent
7d507c4be6
commit
13f536c599
1 changed files with 1 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue