class_docstr: Tests create user job.
class_docstr_tok: ["Tests","create","user","job","."]
code: def test_create_user_job_resources_are_configurable(self):
      resources = {
          "requests": {
              "cpu": "128m",
              "memory": "256Mi",
          },
          "limits": {
              "cpu": "256m",
              "memory": "512Mi",
          },
      }
      docs = render_chart(
          values={
              "createUserJob": {
                  "resources": resources,
              },
          },
          show_only=["templates/jobs/create-user-job.yaml"],
      )
  
      assert resources == jmespath.search(
          "spec.template.spec.containers[0].resources", 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 6 for calling the TestCreateUserJob obj's underlying member method code with example usage: obj.test_create_user_job_resources_are_configurable() without return types