def test_create_index_with_model_properties_without_model_name(self):
        """create_vector_index should throw an error
            if model_properties are given without model_name
        """
        model_properties = {"name": "sentence-transformers/all-mpnet-base-v2",
                            "dimensions": 768,
                            "tokens": 128,
                            "type": "sbert"}

        index_settings = {
            "index_defaults": {
                # 'model': model_name,
                'model_properties': model_properties
            }
        }

        self.assertRaises(UnknownModelError, tensor_search.create_vector_index, config=self.config,
            index_name=self.index_name_1, index_settings=index_settings)
create_vector_index should throw an error
            if model_properties are given without model_name
        
tests/integ_tests/s2_inference/test_generic_model.py