docstr: Tests handling of incorrect parameters passed to ``__init__``
docstr_tok: ["Tests","handling","of","incorrect","parameters","passed","to","``","__init__","``"]
code: def test_init_exception(self):
      """
      Tests handling of incorrect parameters passed to ``__init__``
      """
      with pytest.raises(
          AirflowException,
          match="Only one of repo_id or repo_path should be provided, but not both",
      ):
          DatabricksReposUpdateOperator(
              task_id=TASK_ID,
              repo_id="abc",
              repo_path="path",
              branch="abc",
          )
  
      with pytest.raises(
          AirflowException,
          match="One of repo_id or repo_path should be provided",
      ):
          DatabricksReposUpdateOperator(task_id=TASK_ID, branch="abc")
  
      with pytest.raises(
          AirflowException,
          match="Only one of branch or tag should be provided, but not both",
      ):
          DatabricksReposUpdateOperator(
              task_id=TASK_ID, repo_id="123", branch="123", tag="123"
          )
  
      with pytest.raises(
          AirflowException,
          match="One of branch or tag should be provided",
      ):
          DatabricksReposUpdateOperator(task_id=TASK_ID, repo_id="123")
  
file_path: airflow/tests/providers/databricks/operators/test_databricks_repos.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.providers.databricks.operators.databricks_repos import DatabricksReposCreateOperator, DatabricksReposDeleteOperator, DatabricksReposUpdateOperator
label_desc: Use image node_id 3 for calling the TestDatabricksReposUpdateOperator obj's underlying member method code with example usage: obj.test_init_exception() without return types