def test_approximate_threshold_valid_values(self):
        """Test that valid approximateThreshold values work correctly with TENSOR search method"""
        valid_thresholds = [0.0, 0.5, 1.0]

        for threshold in valid_thresholds:
            with self.subTest(threshold=threshold):
                response = self.client.post("/indexes/" + self.structured_index.name + "/search?device=cpu", json={
                    "q": "test",
                    "searchMethod": "TENSOR",
                    "approximateThreshold": threshold
                })

                # Should return 200 (success) since these are valid combinations
                self.assertEqual(response.status_code, 200)
                self.assertIn("hits", response.json())
Test that valid approximateThreshold values work correctly with TENSOR search method
tests/integ_tests/tensor_search/test_api.py