mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix: set master_key=None in test_create_file_with_deep_nested_litellm_metadata
The test was missing the master_key monkeypatch that other tests in the same file set. In CI with parallel execution (-n 4), another test may set master_key to a non-None value, causing auth failures (500) when the test sends 'Bearer test-key'. Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
This commit is contained in:
parent
9f02fff78e
commit
d5f555f10c
1 changed files with 2 additions and 0 deletions
|
|
@ -1138,6 +1138,8 @@ def test_create_file_with_deep_nested_litellm_metadata(
|
|||
monkeypatch.setattr(
|
||||
"litellm.proxy.proxy_server.proxy_logging_obj", proxy_logging_obj
|
||||
)
|
||||
# Disable auth so the test doesn't depend on master_key state from other tests
|
||||
monkeypatch.setattr("litellm.proxy.proxy_server.master_key", None)
|
||||
|
||||
test_file_content = b'{"custom_id": "req-1", "method": "POST", "url": "/v1/chat/completions", "body": {"model": "gpt-3.5-turbo"}}'
|
||||
test_file = ("nested.jsonl", test_file_content, "application/jsonl")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue