mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
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
This commit is contained in:
parent
0faaeccfb6
commit
50b68caf9f
1 changed files with 0 additions and 7 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue