def mock_tool_context(self):
    """Create a mock ToolContext for testing tool execution."""
    context = Mock(spec=ToolContext)
    context.get_auth_response = Mock(return_value=None)
    context.request_credential = Mock()
    return context
Create a mock ToolContext for testing tool execution.
tests/unittests/tools/bigquery/test_bigquery_tool.py