mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix: restore module import in test_check_migration after merge
The conflict resolution imported only the function but the test body references check_migration as a module throughout. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a733c74a68
commit
cc28914d7f
1 changed files with 2 additions and 2 deletions
|
|
@ -14,11 +14,11 @@ def test_check_migration_out_of_sync(mocker):
|
|||
- 🚨 [IMPORTANT] Does NOT Raise an Exception when the Prisma schema is out of sync with the database.
|
||||
- logs an error when the Prisma schema is out of sync with the database.
|
||||
"""
|
||||
# Import the function first so check_migration module is in sys.modules,
|
||||
# Import the module first so check_migration is in sys.modules,
|
||||
# then patch the logger reference in that module directly (not the source
|
||||
# module) so the patch works regardless of import order or xdist worker
|
||||
# assignment.
|
||||
from litellm.proxy.db.check_migration import check_prisma_schema_diff
|
||||
from litellm.proxy.db import check_migration
|
||||
|
||||
mock_logger = mocker.patch("litellm.proxy.db.check_migration.verbose_logger")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue