class_docstr: Test PapermillOperator.
docstr: Test rendering fields.
docstr_tok: ["Test","rendering","fields","."]
code: def test_render_template(self, create_task_instance_of_operator):
      """Test rendering fields."""
      ti = create_task_instance_of_operator(
          PapermillOperator,
          input_nb="/tmp/{{ dag.dag_id }}.ipynb",
          output_nb="/tmp/out-{{ dag.dag_id }}.ipynb",
          parameters={
              "msgs": "dag id is {{ dag.dag_id }}!",
              "test_dt": "{{ ds }}",
          },
          kernel_name="{{ params.kernel_name }}",
          language_name="{{ params.language_name }}",
          # Additional parameters for render fields
          params={
              "kernel_name": "python3",
              "language_name": "python",
          },
          # TI Settings
          dag_id="test_render_template",
          task_id="render_dag_test",
          execution_date=DEFAULT_DATE,
      )
      task = ti.render_templates()
  
      # Test render Input/Output notebook attributes
      assert task.input_nb == "/tmp/test_render_template.ipynb"
      assert task.output_nb == "/tmp/out-test_render_template.ipynb"
  
      # Test render other templated attributes
      assert "python3" == task.kernel_name
      assert "python" == task.language_name
  
file_path: airflow/tests/providers/papermill/operators/test_papermill.py
imports: from __future__ import annotations
  from unittest.mock import MagicMock, patch
  import pytest
  from airflow.providers.papermill.hooks.kernel import JUPYTER_KERNEL_CONTROL_PORT, JUPYTER_KERNEL_HB_PORT, JUPYTER_KERNEL_IOPUB_PORT, JUPYTER_KERNEL_SHELL_PORT, JUPYTER_KERNEL_STDIN_PORT
  from airflow.providers.papermill.operators.papermill import REMOTE_KERNEL_ENGINE, NoteBook, PapermillOperator
  from airflow.utils import timezone
label_desc: Use image node_id 5 for calling the TestPapermillOperator obj's underlying member method code with example usage: obj.test_render_template(create_task_instance_of_operator) without return types