class_docstr: Tests PgBouncer config.
class_docstr_tok: ["Tests","PgBouncer","config","."]
code: def test_should_add_custom_env_variables(self):
      env1 = {"name": "TEST_ENV_1", "value": "test_env_1"}
  
      docs = render_chart(
          values={
              "pgbouncer": {
                  "enabled": True,
                  "env": [env1],
              },
          },
          show_only=["templates/pgbouncer/pgbouncer-deployment.yaml"],
      )[0]
  
      assert jmespath.search(
          "spec.template.spec.containers[0].env", docs
      ) == [env1]
  
imports: from __future__ import annotations
  import base64
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 12 for calling the TestPgbouncerConfig obj's underlying member method code with example usage: obj.test_should_add_custom_env_variables() without return types