forked from phoenix/litellm-mirror
Add nicer test ids when using pytest -v
Replace: ``` test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route0] PASSED test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route10] PASSED test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route11] PASSED test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route12] PASSED test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route13] PASSED test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route14] PASSED ```` with: ``` litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'audio_transcriptions', 'path': '/audio/transcriptions'}] PASSED litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'audio_transcriptions', 'path': '/v1/audio/transcriptions'}] PASSED litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'chat_completion', 'path': '/chat/completions'}] PASSED litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'chat_completion', 'path': '/engines/{model}/chat/completions'}] PASSED litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'chat_completion', 'path': '/openai/deployments/{model}/chat/completions'}] PASSED litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'chat_completion', 'path': '/v1/chat/completions'}] PASSED ```
This commit is contained in:
parent
cf71857354
commit
4194bafae0
1 changed files with 1 additions and 0 deletions
|
@ -183,6 +183,7 @@ async def test_new_user_response(prisma_client):
|
||||||
APIRoute(path= "/v1/models", endpoint=model_list),
|
APIRoute(path= "/v1/models", endpoint=model_list),
|
||||||
APIRoute(path= "/models", endpoint=model_list),
|
APIRoute(path= "/models", endpoint=model_list),
|
||||||
],
|
],
|
||||||
|
ids=lambda route: str(dict(route=route.endpoint.__name__, path=route.path)),
|
||||||
)
|
)
|
||||||
def test_generate_and_call_with_valid_key(prisma_client, api_route):
|
def test_generate_and_call_with_valid_key(prisma_client, api_route):
|
||||||
# 1. Generate a Key, and use it to make a call
|
# 1. Generate a Key, and use it to make a call
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue