class_docstr: Test class for TableauOperator
docstr: Test execute missing datasource
docstr_tok: ["Test","execute","missing","datasource"]
code: def test_execute_missing_datasource(self, mock_tableau_hook):
      """
      Test execute missing datasource
      """
      mock_tableau_hook.get_all = Mock(
          return_value=self.mock_datasources
      )
      mock_tableau_hook.return_value.__enter__ = Mock(
          return_value=mock_tableau_hook
      )
      operator = TableauOperator(
          find="test", resource="datasources", **self.kwargs
      )
  
      with pytest.raises(AirflowException):
          operator.execute({})
  
file_path: airflow/tests/providers/tableau/operators/test_tableau.py
imports: from __future__ import annotations
  from unittest.mock import Mock, patch
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.providers.tableau.hooks.tableau import TableauJobFinishCode
  from airflow.providers.tableau.operators.tableau import TableauOperator
label_desc: Use image node_id 7 for calling the TestTableauOperator obj's underlying member method code with example usage: obj.test_execute_missing_datasource(mock_tableau_hook) without return types