class_docstr: Test git sync scheduler.
class_docstr_tok: ["Test","git","sync","scheduler","."]
code: def test_should_add_extra_volume_and_extra_volume_mount(self):
      docs = render_chart(
          values={
              "executor": "CeleryExecutor",
              "scheduler": {
                  "extraVolumes": [
                      {
                          "name": "test-volume-{{ .Chart.Name }}",
                          "emptyDir": {},
                      }
                  ],
                  "extraVolumeMounts": [
                      {
                          "name": "test-volume-{{ .Chart.Name }}",
                          "mountPath": "/opt/test",
                      }
                  ],
              },
              "dags": {
                  "gitSync": {
                      "enabled": True,
                  }
              },
          },
          show_only=["templates/scheduler/scheduler-deployment.yaml"],
      )
  
      assert {
          "name": "test-volume-airflow",
          "emptyDir": {},
      } in jmespath.search("spec.template.spec.volumes", docs[0])
      assert {
          "name": "test-volume-airflow",
          "mountPath": "/opt/test",
      } in jmespath.search(
          "spec.template.spec.containers[0].volumeMounts", docs[0]
      )
  
file_path: airflow/helm_tests/other/test_git_sync_scheduler.py
imports: from __future__ import annotations
  import jmespath
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 8 for calling the TestGitSyncSchedulerTest obj's underlying member method code with example usage: obj.test_should_add_extra_volume_and_extra_volume_mount() without return types