def test_no_model_and_context_vectors_dimension(self):
        """Test to ensure no_model still raises error if context vector dimension is incorrect."""
        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=None,
                                                             context={
                                                                 "tensor": [{"vector": [1, ] * (self.DIMENSION + 1),
                                                                             "weight": -1},
                                                                            {"vector": [1, ] * (self.DIMENSION + 1),
                                                                             "weight": 1}], })
                self.assertIn("does not match the expected dimension", str(e.exception.message))
Test to ensure no_model still raises error if context vector dimension is incorrect.
tests/api_tests/v1/tests/api_tests/test_no_model_feature.py