Skip to content

testing

Class info

🛈 DocStrings

Importable functiosn for testing.

test_func

test_func(main_arg: str, opt1: str = 'default', opt2: bool = False) -> str

Function purely for testing.

Source code in src/mcp_server_llmling/testing.py
4
5
6
def test_func(main_arg: str, opt1: str = "default", opt2: bool = False) -> str:  # noqa: PT028
    """Function purely for testing."""
    return f"Main: {main_arg}, Opt1: {opt1}, Opt2: {opt2}"

test_func_multi

test_func_multi(main_arg: str, opt1: str = 'default', opt2: bool = False) -> str

Function with multiple parameters.

Source code in src/mcp_server_llmling/testing.py
def test_func_multi(main_arg: str, opt1: str = "default", opt2: bool = False) -> str:  # noqa: PT028
    """Function with multiple parameters."""
    return f"Main: {main_arg}, Opt1: {opt1}, Opt2: {opt2}"

test_func_single

test_func_single(arg: str) -> str

Function with single parameter.

Source code in src/mcp_server_llmling/testing.py
def test_func_single(arg: str) -> str:
    """Function with single parameter."""
    return f"Single: {arg}"

test_func_zero

test_func_zero() -> str

Function with no parameters.

Source code in src/mcp_server_llmling/testing.py
def test_func_zero() -> str:
    """Function with no parameters."""
    return "Zero args"