def test_invalid_data_type(self):
        """Test that invalid data types only reject the document with the invalid data type, not the whole request"""
        # Add a document to field1 of the wrong type
        response = self.client.post("/indexes/" + self.structured_index.name + "/documents?device=cpu", json={
            "documents": [
                {
                    "field2": 123
                }
            ]
        })
        self.assertEqual(response.status_code, 200)
        self.assertEqual(response.json()["errors"], True)
        self.assertIn("Expected a value of type", response.json()["items"][0]["error"])
Test that invalid data types only reject the document with the invalid data type, not the whole request
tests/integ_tests/tensor_search/test_api.py