def test_load_OpenCLIPModelFromCheckPointMethod_success(self):
        """Test loading an OpenCLIP model from a checkpoint is called when providing a url in the model properties."""
        model_name = "my_test_model"
        model_properties = {
            "name": "ViT-B-32",
            "url": "https://openclipart.org/download/12345/my_test_model.pt",
            "type": "open_clip",
            "dimensions": 512
        }

        with patch("marqo.inference.native_inference.embedding_models.open_clip_model.OpenCLIPModel._load_model_and_image_preprocessor_from_checkpoint", \
                   return_value=(MagicMock(), MagicMock())) as mock_load_method:
            with patch("marqo.inference.native_inference.embedding_models.open_clip_model.OpenCLIPModel._load_tokenizer_from_checkpoint",
                       return_value=MagicMock()) as mock_load_tokenizer:
                with patch.object(MagicMock(), 'eval', return_value=None) as mock_eval:
                    model = OpenCLIPModel(model_properties=model_properties, device="cpu")
                    model.load()
                    mock_load_method.assert_called_once()
                    mock_load_tokenizer.assert_called_once()
Test loading an OpenCLIP model from a checkpoint is called when providing a url in the model properties.
tests/integ_tests/core/inference/test_open_clip_model_load.py