class_docstr: Tests DAG processor.
code: def test_dags_gitsync_with_persistence_no_sidecar_or_init_container(
      self,
  ):
      docs = render_chart(
          values={
              "dagProcessor": {"enabled": True},
              "dags": {
                  "gitSync": {"enabled": True},
                  "persistence": {"enabled": True},
              },
          },
          show_only=[
              "templates/dag-processor/dag-processor-deployment.yaml"
          ],
      )
  
      # No gitsync sidecar or init container
      assert "git-sync" not in [
          c["name"]
          for c in jmespath.search(
              "spec.template.spec.containers", docs[0]
          )
      ]
      assert "git-sync-init" not in [
          c["name"]
          for c in jmespath.search(
              "spec.template.spec.initContainers", 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 TestDagProcessor obj's underlying member method code with example usage: obj.test_dags_gitsync_with_persistence_no_sidecar_or_init_container() without return types