class_docstr: Unit tests for SerializedDagModel.
class_docstr_tok: ["Unit","tests","for","SerializedDagModel","."]
docstr: Test a pre-2.1.0 serialized DAG can deserialize DAG dependencies.
docstr_tok: ["Test","a","pre-2.1.0","serialized","DAG","can","deserialize","DAG","dependencies","."]
code: def test_get_dag_dependencies_default_to_empty(
      self, dag_dependencies_fields
  ):
      """Test a pre-2.1.0 serialized DAG can deserialize DAG dependencies."""
      example_dags = make_example_dags(example_dags_module)
  
      with create_session() as session:
          sdms = [SDM(dag) for dag in example_dags.values()]
          # Simulate pre-2.1.0 format.
          for sdm in sdms:
              del sdm.data["dag"]["dag_dependencies"]
              sdm.data["dag"].update(dag_dependencies_fields)
          session.bulk_save_objects(sdms)
  
      expected_dependencies = {dag_id: [] for dag_id in example_dags}
      assert SDM.get_dag_dependencies() == expected_dependencies
  
imports: from __future__ import annotations
  from unittest import mock
  import pendulum
  import pytest
  import airflow.example_dags
  from airflow.datasets import Dataset
  from airflow.models.dag import DAG
  from airflow.models.dagbag import DagBag
  from airflow.models.dagcode import DagCode
  from airflow.models.serialized_dag import SerializedDagModel
  from airflow.operators.bash import BashOperator
  from airflow.serialization.serialized_objects import SerializedDAG
  from airflow.settings import json
  from airflow.utils.hashlib_wrapper import md5
  from airflow.utils.session import create_session
  from tests.test_utils import db
  from tests.test_utils.asserts import assert_queries_count
label_desc: Use image node_id 11 for calling the TestSerializedDagModel obj's underlying member method code with example usage: obj.test_get_dag_dependencies_default_to_empty(dag_dependencies_fields) without return types