forked from phoenix/litellm-mirror
fix - remove dup test
This commit is contained in:
parent
ac4ecce2bc
commit
94e2e292cd
1 changed files with 0 additions and 17 deletions
|
@ -142,23 +142,6 @@ async def test_provider_budgets_e2e_test_expect_to_fail():
|
|||
assert "Exceeded budget for provider" in str(exc_info.value)
|
||||
|
||||
|
||||
def test_get_ttl_seconds():
|
||||
"""
|
||||
Test the get_ttl_seconds helper method"
|
||||
|
||||
"""
|
||||
provider_budget = ProviderBudgetLimiting(
|
||||
router_cache=DualCache(), provider_budget_config={}
|
||||
)
|
||||
|
||||
assert provider_budget.get_ttl_seconds("1d") == 86400 # 1 day in seconds
|
||||
assert provider_budget.get_ttl_seconds("7d") == 604800 # 7 days in seconds
|
||||
assert provider_budget.get_ttl_seconds("30d") == 2592000 # 30 days in seconds
|
||||
|
||||
with pytest.raises(ValueError, match="Unsupported time period format"):
|
||||
provider_budget.get_ttl_seconds("1h")
|
||||
|
||||
|
||||
def test_get_llm_provider_for_deployment():
|
||||
"""
|
||||
Test the _get_llm_provider_for_deployment helper method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue