class_docstr: Tests worker HPA auto scaler.
class_docstr_tok: ["Tests","worker","HPA","auto","scaler","."]
code: def test_should_remove_replicas_field(self):
      docs = render_chart(
          values={
              "executor": "CeleryExecutor",
              "workers": {
                  "hpa": {"enabled": True},
              },
          },
          show_only=["templates/workers/worker-deployment.yaml"],
      )
      assert "replicas" not in jmespath.search("spec", docs[0])
  
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
  from tests.charts.log_groomer import LogGroomerTestBase
label_desc: Use image node_id 3 for calling the TestWorkerHPAAutoScaler obj's underlying member method code with example usage: obj.test_should_remove_replicas_field() without return types