verify_mock
Verify that a mock endpoint was called the correct number of times, with options to assert exact, minimum, or maximum invocations. Returns pass/fail status and call details.
Instructions
Check whether a mock was called the expected number of times. Returns pass/fail status, actual call count, and invocation details. Optionally assert with expected_count, at_least, or at_most parameters. Use this to assert your application is making the right API calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at_least | No | Minimum invocations expected | |
| at_most | No | Maximum invocations expected | |
| expected_count | No | Expected number of invocations (exact match) | |
| id | Yes | Mock ID to verify |