Skip to main content
Glama
Yoosu-L
by Yoosu-L
test_concurrency.py927 B
import pytest from llm_api_benchmark_mcp_server.utils.concurrency import parse_concurrency_levels def test_parse_concurrency_levels_single(): assert parse_concurrency_levels("1") == [1] def test_parse_concurrency_levels_multiple(): assert parse_concurrency_levels("1,2,4,8") == [1, 2, 4, 8] def test_parse_concurrency_levels_with_spaces(): assert parse_concurrency_levels(" 1 , 2 , 4 , 8 ") == [1, 2, 4, 8] def test_parse_concurrency_levels_unsorted(): assert parse_concurrency_levels("8,1,4,2") == [1, 2, 4, 8] def test_parse_concurrency_levels_invalid_character(): with pytest.raises(ValueError): parse_concurrency_levels("1,a,4") def test_parse_concurrency_levels_negative_number(): with pytest.raises(ValueError): parse_concurrency_levels("1,-2,4") def test_parse_concurrency_levels_zero(): with pytest.raises(ValueError): parse_concurrency_levels("1,0,4")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Yoosu-L/llm-api-benchmark-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server