class_docstr: Tests ingress flower.
class_docstr_tok: ["Tests","ingress","flower","."]
code: def test_ingress_created(self, global_value, flower_value, expected):
      values = {"flower": {"enabled": True}, "ingress": {}}
      if global_value is not None:
          values["ingress"]["enabled"] = global_value
      if flower_value is not None:
          values["ingress"]["flower"] = {"enabled": flower_value}
      if values["ingress"] == {}:
          del values["ingress"]
      docs = render_chart(
          values=values,
          show_only=["templates/flower/flower-ingress.yaml"],
      )
      assert expected == (1 == len(docs))
  
file_path: airflow/helm_tests/webserver/test_ingress_flower.py
imports: from __future__ import annotations
  import itertools
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 9 for calling the TestIngressFlower obj's underlying member method code with example usage: obj.test_ingress_created(global_value, flower_value, expected) without return types