class_docstr: Tests worker.
class_docstr_tok: ["Tests","worker","."]
code: def test_workers_strategy(
      self, persistence, strategy, expected_strategy
  ):
      docs = render_chart(
          values={
              "executor": "CeleryExecutor",
              "workers": {
                  "persistence": {"enabled": persistence},
                  "strategy": strategy,
              },
          },
          show_only=["templates/workers/worker-deployment.yaml"],
      )
  
      assert expected_strategy == jmespath.search(
          "spec.strategy", 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 13 for calling the TestWorker obj's underlying member method code with example usage: obj.test_workers_strategy(persistence, strategy, expected_strategy) without return types