docstr: When both hook params and extras are supplied, hook params should
  beat extras.
docstr_tok: ["When","both","hook","params","and","extras","are","supplied",",","hook","params","should","beat","extras","."]
code: def test_hook_param_beats_extra(self, include_params):
      """When both hook params and extras are supplied, hook params should
      beat extras."""
      hook_params = dict(
          account="account",
          warehouse="warehouse",
          database="database",
          region="region",
          role="role",
          authenticator="authenticator",
          session_parameters="session_parameters",
      )
      extras = {k: f"{v}_extra" for k, v in hook_params.items()}
      with mock.patch.dict(
          "os.environ",
          AIRFLOW_CONN_TEST_CONN=Connection(
              conn_type="any", extra=json.dumps(extras)
          ).get_uri(),
      ):
          assert hook_params != extras
          assert SnowflakeHook(
              snowflake_conn_id="test_conn",
              **(hook_params if include_params else {}),
          )._get_conn_params() == {
              "user": None,
              "password": "",
              "application": "AIRFLOW",
              "schema": "",
              **(hook_params if include_params else extras),
          }
  
imports: from __future__ import annotations
  import json
  from copy import deepcopy
  from typing import TYPE_CHECKING, Any
  from unittest import mock
  import pytest
  from cryptography.hazmat.backends import default_backend
  from cryptography.hazmat.primitives import serialization
  from cryptography.hazmat.primitives.asymmetric import rsa
  from airflow.models import Connection
  from airflow.providers.snowflake.hooks.snowflake import SnowflakeHook
label_desc: Use image node_id 3 for calling the TestPytestSnowflakeHook obj's underlying member method code with example usage: obj.test_hook_param_beats_extra(include_params) without return types