def test_vectorise_with_no_device_fails(self):
        """
            when device is not set,
            vectorise call should raise an internal error
        """
        try:
            get_available_models().update(self.mock_available_models)

            # Test with a batch size of 1
            s2_inference.vectorise(model_name='mock_model', content=self.content_list,
                                model_properties=self.mock_model_props)
            raise AssertionError
        except InternalError:
            pass

            when device is not set,
            vectorise call should raise an internal error
        
tests/integ_tests/s2_inference/test_vectorise.py