def test_no_model_raise_error_if_query_in_search(self):
        """Test to ensure that providing a query to vectorise will raise an error."""
        for index_name in [self.structured_no_model_index_name, self.unstructured_no_model_index_name]:
            with (self.subTest(index_name=index_name)):
                with self.assertRaises(MarqoWebError) as e:
                    r = self.client.index(index_name).search(q="test")
                self.assertIn("Cannot vectorise anything with 'no_model'", str(e.exception))
Test to ensure that providing a query to vectorise will raise an error.
tests/api_tests/v1/tests/api_tests/test_no_model_feature.py