code: def test_poke_nondefault_args(self, mock_check_for_partition):
      table_name = "my_table"
      expression = "col=val"
      aws_conn_id = "my_aws_conn_id"
      region_name = "us-west-2"
      database_name = "my_db"
      poke_interval = 2
      timeout = 3
      op = GlueCatalogPartitionSensor(
          task_id=self.task_id,
          table_name=table_name,
          expression=expression,
          aws_conn_id=aws_conn_id,
          region_name=region_name,
          database_name=database_name,
          poke_interval=poke_interval,
          timeout=timeout,
      )
      # We're mocking all actual AWS calls and don't need a connection. This
      # avoids an Airflow warning about connection cannot be found.
      op.hook.get_connection = lambda _: None
      op.poke({})
  
      assert op.hook.region_name == region_name
      assert op.hook.aws_conn_id == aws_conn_id
      assert op.poke_interval == poke_interval
      assert op.timeout == timeout
      mock_check_for_partition.assert_called_once_with(
          database_name, table_name, expression
      )
  
file_path: airflow/tests/providers/amazon/aws/sensors/test_glue_catalog_partition.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from moto import mock_glue
  from airflow.exceptions import AirflowException, AirflowSkipException, TaskDeferred
  from airflow.providers.amazon.aws.hooks.glue_catalog import GlueCatalogHook
  from airflow.providers.amazon.aws.sensors.glue_catalog_partition import GlueCatalogPartitionSensor
label_desc: Use image node_id 4 for calling the TestGlueCatalogPartitionSensor obj's underlying member method code with example usage: obj.test_poke_nondefault_args(mock_check_for_partition) without return types