class_docstr: Tests cleanup of pods.
class_docstr_tok: ["Tests","cleanup","of","pods","."]
code: def test_should_set_labels_to_jobs_from_cronjob(self):
      docs = render_chart(
          values={
              "cleanup": {"enabled": True},
              "labels": {"project": "airflow"},
          },
          show_only=["templates/cleanup/cleanup-cronjob.yaml"],
      )
  
      assert {
          "tier": "airflow",
          "component": "airflow-cleanup-pods",
          "release": "release-name",
          "project": "airflow",
      } == jmespath.search(
          "spec.jobTemplate.spec.template.metadata.labels", 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 10 for calling the TestCleanupPods obj's underlying member method code with example usage: obj.test_should_set_labels_to_jobs_from_cronjob() without return types