def test_context_vector_raise_error_if_query_and_context_are_none(self):
        """Test to ensure that a proper error is raised if both query and context is None"""
        for index_name in [self.structured_index_with_random_model, self.unstructured_index_with_random_model]:
            with self.subTest(msg=index_name):
                with self.assertRaises(ValidationError) as e:
                    res = tensor_search.search(text=None, config=self.config, index_name=index_name, context=None)
                self.assertIn("One of Query(q) or context is required for TENSOR search",
                              str(e.exception))
Test to ensure that a proper error is raised if both query and context is None
tests/integ_tests/tensor_search/test_context_vectors_search.py