class_docstr: Tests worker.
class_docstr_tok: ["Tests","worker","."]
code: def test_disable_wait_for_migration(self):
      docs = render_chart(
          values={
              "workers": {
                  "waitForMigrations": {"enabled": False},
              },
          },
          show_only=["templates/workers/worker-deployment.yaml"],
      )
      actual = jmespath.search(
          "spec.template.spec.initContainers[?name=='wait-for-airflow-migrations']",
          docs[0],
      )
      assert actual is None
  
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
  from tests.charts.log_groomer import LogGroomerTestBase
label_desc: Use image node_id 4 for calling the TestWorker obj's underlying member method code with example usage: obj.test_disable_wait_for_migration() without return types