mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
test(proxy): document budget key boundary
This commit is contained in:
parent
39640bec01
commit
41d92bd55f
1 changed files with 2 additions and 2 deletions
|
|
@ -175,14 +175,14 @@ async def test_user_budget_limits_under_budget_passes(): # test-quality-ok: cou
|
|||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_user_budget_window_key_encodes_namespace_delimiters():
|
||||
async def test_user_budget_window_key_encodes_namespace_delimiters(): # test-quality-ok: key namespace is the observable boundary
|
||||
user_id = "user:window:1h"
|
||||
user = LiteLLM_UserTable(
|
||||
user_id=user_id,
|
||||
budget_limits=[{"budget_duration": "1d", "max_budget": 10.0}],
|
||||
)
|
||||
|
||||
with patch(
|
||||
with patch( # test-quality-ok: no injected spend reader exists at this auth boundary
|
||||
"litellm.proxy.proxy_server.get_current_spend",
|
||||
new_callable=AsyncMock,
|
||||
return_value=1.0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue