def test_modification_of_model_properties(self):
        """_available_models should get updated if the model_properties are modified
            and model_name is unchanged
        """
        model_name = 'test-model-in-registry'
        model_properties = {"name": "sentence-transformers/all-mpnet-base-v2",
                            "dimensions": 768,
                            "tokens": 128,
                            "type": "sbert"}
        index_settings = {
            "index_defaults": {
                'model': model_name,
                'model_properties': model_properties
            }
        }

        tensor_search.create_vector_index(index_name=self.index_name_1,
            config=self.config, index_settings=index_settings
        )

        vectorise(model_name=model_name, model_properties=model_properties, content="some string", device="cpu")
        tensor_search.delete_index(config=self.config, index_name=self.index_name_1)

        old_num_of_available_models = len(_available_models)
        model_properties['tokens'] = 256

        tensor_search.create_vector_index(index_name=self.index_name_1,
            config=self.config, index_settings=index_settings
        )
        vectorise(model_name=model_name, model_properties=model_properties, content="some string", device="cpu")

        new_num_of_available_models = len(_available_models)

        self.assertEqual(new_num_of_available_models, old_num_of_available_models + 1)
_available_models should get updated if the model_properties are modified
            and model_name is unchanged
        
tests/integ_tests/s2_inference/test_generic_model.py