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__``
      """
      git_url = "https://github.com/test/test"
      repo_path = "/Repos/test-repo"
      exception_message = f"repo_path should have form of /Repos/{{folder}}/{{repo-name}}, got '{repo_path}'"
  
      with pytest.raises(AirflowException, match=exception_message):
          op = DatabricksReposCreateOperator(
              task_id=TASK_ID, git_url=git_url, repo_path=repo_path
          )
          op.execute(None)
  
      with pytest.raises(
          AirflowException,
          match="Only one of branch or tag should be provided, but not both",
      ):
          DatabricksReposCreateOperator(
              task_id=TASK_ID, git_url=git_url, branch="123", tag="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 TestDatabricksReposCreateOperator obj's underlying member method code with example usage: obj.test_init_exception() without return types