class_docstr: Tests worker keda auto scaler.
class_docstr_tok: ["Tests","worker","keda","auto","scaler","."]
code: def test_should_remove_replicas_field(self):
      docs = render_chart(
          values={
              "executor": "CeleryExecutor",
              "workers": {
                  "keda": {"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 2 for calling the TestWorkerKedaAutoScaler obj's underlying member method code with example usage: obj.test_should_remove_replicas_field() without return types