class_docstr: Tests worker keda auto scaler.
class_docstr_tok: ["Tests","worker","keda","auto","scaler","."]
code: def test_should_use_keda_query(self, query, executor, expected_query):
      docs = render_chart(
          values={
              "executor": executor,
              "workers": {
                  "keda": {
                      "enabled": True,
                      **({"query": query} if query else {}),
                  },
              },
          },
          show_only=["templates/workers/worker-kedaautoscaler.yaml"],
      )
      assert expected_query == jmespath.search(
          "spec.triggers[0].metadata.query", 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 TestWorkerKedaAutoScaler obj's underlying member method code with example usage: obj.test_should_use_keda_query(query, executor, expected_query) without return types