class_docstr: Tests HPA.
docstr: Verify HPA behavior.
code: def test_hpa_behavior(self, executor):
      """Verify HPA behavior."""
      expected_behavior = {
          "scaleDown": {
              "stabilizationWindowSeconds": 300,
              "policies": [
                  {"type": "Percent", "value": 100, "periodSeconds": 15}
              ],
          }
      }
      docs = render_chart(
          values={
              "workers": {
                  "hpa": {
                      "enabled": True,
                      "behavior": expected_behavior,
                  },
              },
              "executor": executor,
          },
          show_only=["templates/workers/worker-hpa.yaml"],
      )
      assert (
          jmespath.search("spec.behavior", docs[0]) == expected_behavior
      )
  
file_path: airflow/helm_tests/other/test_hpa.py
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 4 for calling the TestHPA obj's underlying member method code with example usage: obj.test_hpa_behavior(executor) without return types