MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / assert_execution_info_valid

Function assert_execution_info_valid

tests/fixtures/helpers.py:37–44  ·  view source on GitHub ↗

Assert that execution info is valid and contains expected fields. Args: exec_info: Execution info dictionary

(exec_info: Dict[str, Any])

Source from the content-addressed store, hash-verified

35
36
37def assert_execution_info_valid(exec_info: Dict[str, Any]):
38 """Assert that execution info is valid and contains expected fields.
39
40 Args:
41 exec_info: Execution info dictionary
42 """
43 assert exec_info is not None, "Execution info should not be None"
44 assert isinstance(exec_info, dict), "Execution info should be a dictionary"
45
46
47def assert_response_time_acceptable(execution_time: float, max_time: float = 30.0):

Callers 2

Calls

no outgoing calls

Tested by 2