class_docstr: Tests scheduler.
class_docstr_tok: ["Tests","scheduler","."]
docstr: Strategy should be used when we aren't using both a local executor and workers.persistence.
code: def test_scheduler_strategy(
      self, executor, persistence, strategy, expected_strategy
  ):
      """Strategy should be used when we aren't using both a local executor and workers.persistence."""
      docs = render_chart(
          values={
              "executor": executor,
              "workers": {"persistence": {"enabled": persistence}},
              "scheduler": {"strategy": strategy},
          },
          show_only=["templates/scheduler/scheduler-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 27 for calling the TestScheduler obj's underlying member method code with example usage: obj.test_scheduler_strategy(executor, persistence, strategy, expected_strategy) without return types