def test_search_query_ExpectedErrorRaisedForInvalidSearchMethod(self):
        """Test that the ValidationError is raised when an incorrect search method is provided."""
        invalid_search_methods = [
            ("", "Empty string"),
            (1, "Integer"),
            ([], "List"),
            ({"searchMethod": "LEXICAL"}, "Dictionary"),
        ]
        for search_method, search_method_type in invalid_search_methods:
            with self.subTest(search_method_type=search_method_type):
                with self.assertRaises(ValidationError) as cm:
                    _ = SearchQuery(q="test", search_method=search_method)
                self.assertIn("search_method", str(cm.exception))
Test that the ValidationError is raised when an incorrect search method is provided.
tests/integ_tests/tensor_search/integ_tests/test_search_combined.py