mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
def test_get_bearer_token():
fix
This commit is contained in:
parent
3ee144a03c
commit
d25c8ce31a
1 changed files with 0 additions and 5 deletions
|
@ -2076,11 +2076,6 @@ def test_get_bearer_token():
|
|||
result = _get_bearer_token(api_key)
|
||||
assert result == "", f"Expected '', got '{result}'"
|
||||
|
||||
# Test API key with Bearer prefix in lowercase
|
||||
api_key = "bearer valid_token"
|
||||
result = _get_bearer_token(api_key)
|
||||
assert result == "", f"Expected '', got '{result}'"
|
||||
|
||||
# Test API key with Bearer prefix and extra spaces
|
||||
api_key = " Bearer valid_token "
|
||||
result = _get_bearer_token(api_key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue