mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test: make script to run clearer
This commit is contained in:
parent
2a0c7e7d20
commit
217e8d7d44
1 changed files with 4 additions and 2 deletions
|
|
@ -39,7 +39,9 @@ def test_aaaasschema_migration_check(schema_setup, monkeypatch):
|
|||
|
||||
if not temp_migrations_dir.exists() or not any(temp_migrations_dir.iterdir()):
|
||||
print("No existing migrations found - first migration needed")
|
||||
pytest.fail("No existing migrations found - first migration needed")
|
||||
pytest.fail(
|
||||
"No existing migrations found - first migration needed. Run `litellm/ci_cd/baseline_db.py` to create new migration -E.g. `python litellm/ci_cd/baseline_db_migration.py`."
|
||||
)
|
||||
|
||||
# Apply all existing migrations
|
||||
subprocess.run(
|
||||
|
|
@ -72,7 +74,7 @@ def test_aaaasschema_migration_check(schema_setup, monkeypatch):
|
|||
print("Schema differences:")
|
||||
print(diff_result.stdout)
|
||||
pytest.fail(
|
||||
"Schema changes detected - new migration required. Run 'prisma migrate dev' to create new migration."
|
||||
"Schema changes detected - new migration required. Run `litellm/ci_cd/run_migration.py` to create new migration -E.g. `python litellm/ci_cd/run_migration.py <migration_name>`."
|
||||
)
|
||||
else:
|
||||
print("No schema changes detected. Migration not needed.")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue