class_docstr: Test the WeaviateHook Hook.
class_docstr_tok: ["Test","the","WeaviateHook","Hook","."]
docstr: Test the create part of get_or_create_object method of WeaviateHook.
docstr_tok: ["Test","the","create","part","of","get_or_create_object","method","of","WeaviateHook","."]
code: def test_create_of_get_or_create_object(
      self, mock_gen_uuid, weaviate_hook
  ):
      """
      Test the create part of get_or_create_object method of WeaviateHook.
      """
      mock_client = MagicMock()
      weaviate_hook.get_conn = MagicMock(return_value=mock_client)
      weaviate_hook.get_object = MagicMock(return_value=None)
      mock_create_object = MagicMock()
      weaviate_hook.create_object = mock_create_object
      weaviate_hook.get_or_create_object(
          data_object={"name": "Test"}, class_name="TestClass"
      )
      mock_create_object.assert_called_once_with(
          {"name": "Test"},
          "TestClass",
          uuid=mock_gen_uuid.return_value,
          consistency_level=None,
          tenant=None,
          vector=None,
      )
  
imports: from __future__ import annotations
  from contextlib import ExitStack
  from unittest import mock
  from unittest.mock import MagicMock, Mock
  import pandas
  import pytest
  import requests
  import weaviate
  from weaviate import ObjectAlreadyExistsException
  from airflow.models import Connection
  from airflow.providers.weaviate.hooks.weaviate import WeaviateHook
label_desc: Use image node_id 11 for calling the TestWeaviateHook obj's underlying member method code with example usage: obj.test_create_of_get_or_create_object(mock_gen_uuid, weaviate_hook) without return types