Module assertions

Module assertions 

Source
Expand description

Custom assertions for MCP testing.

This module provides assertion helpers that make it easier to test MCP responses and results.

Functionsยง

assert_content_contains
Assert that content contains expected text.
assert_content_text
Assert that content is text with expected value.
assert_output_error
Assert that a ToolOutput is an error.
assert_output_success
Assert that a ToolOutput is successful with expected text.
assert_tool_error
Assert that a tool result is an error with expected message.
assert_tool_success
Assert that a tool result is successful and contains expected text.