docstr: Test query generated with dag_id and params
docstr_tok: ["Test","query","generated","with","dag_id","and","params"]
code: def test_build_airflow_url_with_query(self):
      """
      Test query generated with dag_id and params
      """
      query = {"dag_id": "test_dag", "param": "key/to.encode"}
      expected_url = "/dags/test_dag/graph?param=key%2Fto.encode"
  
      from airflow.www.app import cached_app
  
      with cached_app(testing=True).test_request_context():
          assert build_airflow_url_with_query(query) == expected_url
  
imports: from __future__ import annotations
  import itertools
  import re
  from typing import TYPE_CHECKING
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.jobs.base_job_runner import BaseJobRunner
  from airflow.utils import helpers, timezone
  from airflow.utils.helpers import at_most_one, build_airflow_url_with_query, exactly_one, merge_dicts, prune_dict, validate_group_key, validate_key
  from airflow.utils.types import NOTSET
  from tests.test_utils.config import conf_vars
  from tests.test_utils.db import clear_db_dags, clear_db_runs
label_desc: Use image node_id 13 for calling the TestHelpers obj's underlying member method code with example usage: obj.test_build_airflow_url_with_query() without return types