(
        self, node: ParsedGenericTestNode, config: ContextConfig,
    )
Given the parsed node and a ContextConfig to use during
        parsing, collect all the refs that might be squirreled away in the test
        arguments. This includes the implicit "model" argument.
Given the parsed node and a ContextConfig to use during
        parsing, collect all the refs that might be squirreled away in the test
        arguments. This includes the implicit "model" argument.
Given the parsed node and a ContextConfig to use during parsing collect all the refs that might be squirreled away in the test arguments . This includes the implicit model argument .
def render_with_context(
        self, node: ParsedGenericTestNode, config: ContextConfig,
    ) -> None:
        """Given the parsed node and a ContextConfig to use during
        parsing, collect all the refs that might be squirreled away in the test
        arguments. This includes the implicit "model" argument.
        """
        # make a base context that doesn't have the magic kwargs field
        context = self._context_for(node, config)
        # update it with the rendered test kwargs (which collects any refs)
        add_rendered_test_kwargs(context, node, capture_macros=True)

        # the parsed node is not rendered in the native context.
        get_rendered(
            node.raw_sql, context, node, capture_macros=True
        )
def render_with_context ( self , node : ParsedGenericTestNode , config : ContextConfig , ) -> None : # make a base context that doesn't have the magic kwargs field context = self . _context_for ( node , config ) # update it with the rendered test kwargs (which collects any refs) add_rendered_test_kwargs ( context , node , capture_macros = True ) # the parsed node is not rendered in the native context. get_rendered ( node . raw_sql , context , node , capture_macros = True )