def test_a_text_index_will_treat_a_url_as_text(self):
        """Test that a text index will treat a URL as text and not download the image"""
        valid_url = TestImageUrls.HIPPO_REALISTIC.value
        invalid_url = TestImageUrls.HIPPO_REALISTIC.value + "invalid"
        self.add_documents(
            config=self.config, add_docs_params=AddDocsParams(
                index_name=self.default_text_index, docs=[
                    {
                        "_id": "1",
                        "title": invalid_url,
                        "non_tensor_field": valid_url
                    }
                ],
                device="cpu", tensor_fields=["title"]
            )
        )
        doc = tensor_search.get_document_by_id(
            config=self.config, index_name=self.default_text_index, document_id="1", show_vectors=True
        )

        self.assertEqual(invalid_url, doc["title"])
        self.assertEqual(valid_url, doc["non_tensor_field"])
        self.assertEqual(1, len(doc[enums.TensorField.tensor_facets]))
        self.assertIn("title", doc[enums.TensorField.tensor_facets][0])
Test that a text index will treat a URL as text and not download the image
tests/integ_tests/tensor_search/integ_tests/test_add_documents_unstructured.py