From 50b68caf9f2e3ce05479ac27616b3340b4b75965 Mon Sep 17 00:00:00 2001 From: Mrinal Chanshetty Date: Thu, 29 Oct 2026 14:24:44 -0700 Subject: [PATCH] test(proxy): drop the SQL-text check for the tag team upsert The test asserted the generated SQL rather than stored rows. The team upsert rule is covered by the integration test where a row written without a team gets the team on the next write --- tests/unit/proxy/db/test_daily_spend_bulk_upsert.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tests/unit/proxy/db/test_daily_spend_bulk_upsert.py b/tests/unit/proxy/db/test_daily_spend_bulk_upsert.py index af2d84c5169..1f80e184516 100644 --- a/tests/unit/proxy/db/test_daily_spend_bulk_upsert.py +++ b/tests/unit/proxy/db/test_daily_spend_bulk_upsert.py @@ -134,13 +134,6 @@ def test_request_id_is_preserved_when_a_later_batch_carries_none(): assert None in params -def test_a_batch_without_a_team_never_clears_the_stored_team(): - sql, params = build_bulk_upsert(TAG_TABLE, merge_by_conflict_key(TAG_TABLE, (tag_txn(team_id=""),))) - - assert '"team_id" = COALESCE(NULLIF(EXCLUDED."team_id", \'\'), "LiteLLM_DailyTagSpend"."team_id")' in sql - assert "" in params - - def test_non_tag_tables_carry_no_request_id_column(): user_txn = {**tag_txn(), "user_id": "u-1"} del user_txn["tag"]