class_docstr: Tests scheduler.
class_docstr_tok: ["Tests","scheduler","."]
docstr: Test scheduler kind is StatefulSet only with a local executor & worker persistence is enabled.
code: def test_scheduler_kind(self, executor, persistence, kind):
      """Test scheduler kind is StatefulSet only with a local executor & worker persistence is enabled."""
      docs = render_chart(
          values={
              "executor": executor,
              "workers": {"persistence": {"enabled": persistence}},
          },
          show_only=["templates/scheduler/scheduler-deployment.yaml"],
      )
  
      assert kind == jmespath.search("kind", 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 1 for calling the TestScheduler obj's underlying member method code with example usage: obj.test_scheduler_kind(executor, persistence, kind) without return types