class_docstr: Tests migrate DB job.
code: def test_should_run_by_default(self):
      docs = render_chart(
          show_only=["templates/jobs/migrate-database-job.yaml"]
      )
      assert "Job" == docs[0]["kind"]
      assert "run-airflow-migrations" == jmespath.search(
          "spec.template.spec.containers[0].name", docs[0]
      )
      assert 50000 == jmespath.search(
          "spec.template.spec.securityContext.runAsUser", 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 1 for calling the TestMigrateDatabaseJob obj's underlying member method code with example usage: obj.test_should_run_by_default() without return types