class_docstr: Test git sync webserver.
class_docstr_tok: ["Test","git","sync","webserver","."]
code: def test_should_add_git_sync_container_to_webserver_if_persistence_is_not_enabled_but_git_sync_is(
      self,
  ):
      docs = render_chart(
          values={
              "airflowVersion": "1.10.14",
              "dags": {
                  "gitSync": {
                      "enabled": True,
                      "containerName": "git-sync",
                  },
                  "persistence": {"enabled": False},
              },
          },
          show_only=["templates/webserver/webserver-deployment.yaml"],
      )
  
      assert "git-sync" == jmespath.search(
          "spec.template.spec.containers[1].name", docs[0]
      )
  
file_path: airflow/helm_tests/other/test_git_sync_webserver.py
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 3 for calling the TestGitSyncWebserver obj's underlying member method code with example usage: obj.test_should_add_git_sync_container_to_webserver_if_persistence_is_not_enabled_but_git_sync_is() without return types