Assert that response time is within acceptable limits. Args: execution_time: Actual execution time in seconds max_time: Maximum acceptable time in seconds
(execution_time: float, max_time: float = 30.0)
| 45 | |
| 46 | |
| 47 | def assert_response_time_acceptable(execution_time: float, max_time: float = 30.0): |
| 48 | """Assert that response time is within acceptable limits. |
| 49 | |
| 50 | Args: |
| 51 | execution_time: Actual execution time in seconds |
| 52 | max_time: Maximum acceptable time in seconds |
| 53 | """ |
| 54 | assert ( |
| 55 | execution_time <= max_time |
| 56 | ), f"Execution time {execution_time}s exceeded maximum {max_time}s" |
| 57 | |
| 58 | |
| 59 | def assert_no_errors_in_result(result: Union[Dict, str]): |
nothing calls this directly
no outgoing calls
no test coverage detected