class_docstr: Tests webserver deployment.
class_docstr_tok: ["Tests","webserver","deployment","."]
code: def test_dags_gitsync_volume_and_sidecar_and_init_container(self):
      docs = render_chart(
          values={
              "dags": {"gitSync": {"enabled": True}},
              "airflowVersion": "1.10.15",
          },
          show_only=["templates/webserver/webserver-deployment.yaml"],
      )
  
      assert {"name": "dags", "emptyDir": {}} in jmespath.search(
          "spec.template.spec.volumes", docs[0]
      )
      assert "git-sync" in [
          c["name"]
          for c in jmespath.search(
              "spec.template.spec.containers", docs[0]
          )
      ]
      assert "git-sync-init" 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
label_desc: Use image node_id 36 for calling the TestWebserverDeployment obj's underlying member method code with example usage: obj.test_dags_gitsync_volume_and_sidecar_and_init_container() without return types