From 87e947cc8c6ee33fa19e75bf5e7ae22019dfccfe Mon Sep 17 00:00:00 2001 From: Delweng Date: Mon, 12 Oct 2026 15:35:49 +0800 Subject: [PATCH] style(test): collapse test constants and helper signature to one line Pure formatting on the new test block, matching ruff format's preference for lines that fit within 120 characters. Signed-off-by: Delweng --- tests/unit/proxy/db/test_check_migration.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/unit/proxy/db/test_check_migration.py b/tests/unit/proxy/db/test_check_migration.py index 95aa8bd72a2..9277774e8f3 100644 --- a/tests/unit/proxy/db/test_check_migration.py +++ b/tests/unit/proxy/db/test_check_migration.py @@ -82,15 +82,10 @@ _PARTITIONED_SPEND_LOGS_PK_DIFF: Final = ( 'ADD CONSTRAINT "LiteLLM_SpendLogs_pkey" PRIMARY KEY ("request_id");\n' ) -_BUDGET_TABLE_DIFF: Final = ( - "-- AlterTable\n" - 'ALTER TABLE "LiteLLM_BudgetTable" ADD COLUMN "updated_at" TIMESTAMP(3);\n' -) +_BUDGET_TABLE_DIFF: Final = '-- AlterTable\nALTER TABLE "LiteLLM_BudgetTable" ADD COLUMN "updated_at" TIMESTAMP(3);\n' -def _schema_diff_result( - mocker: MockerFixture, diff_sql: str, *, partitioned: bool | None -) -> tuple[bool, list[str]]: +def _schema_diff_result(mocker: MockerFixture, diff_sql: str, *, partitioned: bool | None) -> tuple[bool, list[str]]: mocker.patch( "litellm_proxy_extras.prisma_toolchain.run_prisma", return_value=subprocess.CompletedProcess(args=[], returncode=0, stdout=diff_sql),