def test_create_index_with_incorrect_model_properties(self):
        """Test to ensure that an error is raised when the model properties are incorrect"""
        test_cases = [
            ("no_model", {"dimensions": 0, "type": "no_model"}, "invalid dimensions value, can't be 0"),
            ("no_model", {"dimensions": -123, "type": "no_model"}, "invalid dimensions value, can't be negative"),
            ("no_model", {"dimensions": 213.213, "type": "no_model"}, "invalid dimensions value, can't be float"),
            ("no_model", {"dimensions": "512", "type": "no_model"}, "invalid dimensions value, can't be string"),
            ("no_model", {"dimensions": 234, "type": "No_model"}, "invalid model type, should be 'no_model'"),
            ("no_model", None, "no model properties provided"),
            ("no_model", {"type": "no_model"}, "dimension not provided"),
            ("my_model", {"dimensions": 512, "type": "no_model"}, "invalid model name"),
            ("no_model", {"dimensions": 512, "type": "open_clip"}, "invalid model properties type")
        ]

        for model, model_properties, msg in test_cases:
            for index_type in ["structured", "unstructured"]:
                with self.subTest(msg=f"{index_type} - msg"):
                    with self.assertRaises(MarqoWebError) as e:
                        if index_type == "structured":
                            self.client.create_index("test_create_invalid_no_model", type=index_type,
                                                     model=model, model_properties=model_properties,
                                                     all_fields=[{"name": "text_field_1", "type": "text"}],
                                                     tensor_fields=[]
                                                     )

                        else:
                            self.client.create_index("test_create_invalid_no_model", type=index_type,
                                                     model=model, model_properties=model_properties
                                                     )

                    self.assertIn("Invalid model properties", str(e.exception))
Test to ensure that an error is raised when the model properties are incorrect
tests/api_tests/v1/tests/api_tests/test_no_model_feature.py