Skip to content

Commit 76555ca

Browse files
committed
Format code
1 parent 1a97a80 commit 76555ca

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/test_litellm/proxy/common_utils/test_callback_utils.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@
55
0, os.path.abspath("../../..")
66
) # Adds the parent directory to the system path
77

8-
from litellm.proxy.common_utils.callback_utils import get_remaining_tokens_and_requests_from_request_data
8+
from litellm.proxy.common_utils.callback_utils import (
9+
get_remaining_tokens_and_requests_from_request_data,
10+
)
11+
912

1013
def test_get_remaining_tokens_and_requests_from_request_data():
1114
model_group = "openrouter/google/gemini-2.0-flash-001"
1215
casedata = {
1316
"metadata": {
1417
"model_group": model_group,
1518
f"litellm-key-remaining-requests-{model_group}": 100,
16-
f"litellm-key-remaining-tokens-{model_group}": 200
19+
f"litellm-key-remaining-tokens-{model_group}": 200,
1720
}
1821
}
1922

@@ -22,6 +25,5 @@ def test_get_remaining_tokens_and_requests_from_request_data():
2225
expected_name = "openrouter-google-gemini-2.0-flash-001"
2326
assert headers == {
2427
f"x-litellm-key-remaining-requests-{expected_name}": 100,
25-
f"x-litellm-key-remaining-tokens-{expected_name}": 200
28+
f"x-litellm-key-remaining-tokens-{expected_name}": 200,
2629
}
27-

0 commit comments

Comments
 (0)