class_docstr: Tests webserver deployment.
class_docstr_tok: ["Tests","webserver","deployment","."]
code: def test_command_and_args_overrides_are_templated(self):
      docs = render_chart(
          values={
              "webserver": {
                  "command": ["{{ .Release.Name }}"],
                  "args": ["{{ .Release.Service }}"],
              }
          },
          show_only=["templates/webserver/webserver-deployment.yaml"],
      )
  
      assert ["release-name"] == jmespath.search(
          "spec.template.spec.containers[0].command", docs[0]
      )
      assert ["Helm"] == jmespath.search(
          "spec.template.spec.containers[0].args", 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 33 for calling the TestWebserverDeployment obj's underlying member method code with example usage: obj.test_command_and_args_overrides_are_templated() without return types