def test_create_structured_index_with_custom_vector_not_in_tensor_fields_should_fail(self):
        """
        Test the structured index cannot be created with a custom vector field not in tensor fields
        """
        with self.assertRaises(pydantic.error_wrappers.ValidationError) as err:
            self.create_indexes([self.structured_marqo_index_request(
                model=Model(name='open_clip/ViT-B-32/laion400m_e31'),
                normalize_embeddings=False,
                distance_metric=DistanceMetric.Angular,
                fields=[
                    FieldRequest(
                        name="my_custom_vector",
                        type="custom_vector",
                        features=[FieldFeature.LexicalSearch, FieldFeature.Filter]),
                    FieldRequest(
                        name="text_field",
                        type="text",
                        features=[FieldFeature.LexicalSearch]),
                ],
                tensor_fields=["text_field"]
            )])

        self.assertIn("Field 'my_custom_vector' has type 'custom_vector' and must be a tensor field.",
                      str(err.exception))

        Test the structured index cannot be created with a custom vector field not in tensor fields
        
tests/integ_tests/tensor_search/integ_tests/test_custom_vector_field.py