mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 20:27:35 +00:00
fix unit test mock
This commit is contained in:
parent
6911145263
commit
df6ac3cd0c
1 changed files with 1 additions and 2 deletions
|
@ -33,8 +33,7 @@ def test_groq_provider_openai_client_caching():
|
||||||
with request_provider_data_context(
|
with request_provider_data_context(
|
||||||
{"x-llamastack-provider-data": json.dumps({inference_adapter.provider_data_api_key_field: api_key})}
|
{"x-llamastack-provider-data": json.dumps({inference_adapter.provider_data_api_key_field: api_key})}
|
||||||
):
|
):
|
||||||
openai_client = inference_adapter._get_openai_client()
|
assert inference_adapter.client.api_key == api_key
|
||||||
assert openai_client.api_key == api_key
|
|
||||||
|
|
||||||
|
|
||||||
def test_openai_provider_openai_client_caching():
|
def test_openai_provider_openai_client_caching():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue