characterize_method
Generate characterization tests for a Python class method to lock its behavior. Outputs pytest code with fixture-based instance setup for safe refactoring.
Instructions
v2: Generate characterization tests for a single Python class method. Returns a CharacterizationResult including the emitted pytest code with @pytest.fixture-based instance setup.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"class_name": "<class_name>",
"method_name": "<method_name>"
},
"name": "characterize_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| class_name | Yes | ||
| method_name | Yes | ||
| max_cases | No | ||
| coverage_threshold | No | ||
| max_rounds | No | ||
| output_path | No | ||
| allow_impure | No | ||
| allow_stateful | No |