mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
test(e2e): drop misleading skip comment on require_successful_call
require_successful_call fails hard, it does not skip; the trailing comment was factually wrong. The function name already states intent, so the comment is removed in both per-model and tag budget helpers.
This commit is contained in:
parent
dcecafa9b5
commit
3908c4eda2
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ FREE_MODEL = "gemini-2.5-flash"
|
|||
def _call(client: BudgetClient, key: str, model: str):
|
||||
result = client.chat(key, model, f"hi {unique_marker()}", max_tokens=16)
|
||||
if not result.ok and not is_budget_block(result):
|
||||
require_successful_call(result) # non-budget error -> skip
|
||||
require_successful_call(result)
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ def _tagged_call(client: BudgetClient, key: str, tag: str):
|
|||
max_tokens=16,
|
||||
)
|
||||
if not result.ok and not is_budget_block(result):
|
||||
require_successful_call(result) # non-budget error -> skip
|
||||
require_successful_call(result)
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue