class_docstr: Test Class for LeonardoAI Integration Testing.
class_docstr_tok: ["Test","Class","for","LeonardoAI","Integration","Testing","."]
docstr: Test for invalid Leonardo model parameter
docstr_tok: ["Test","for","invalid","Leonardo","model","parameter"]
code: def test_invalid_model_parameter(self):
      """Test for invalid Leonardo model parameter"""
      self.run_sql(
          """
              CREATE MODEL proj.test_leonardo_invalid_model
              PREDICT url
              USING
              engine = 'leo_engine',
              model = 'invalid-model',
              prompt_template = '{{text}}, 8K | highly detailed realistic 3d oil painting style cyberpunk by MAD DOG JONES combined with Van Gogh  |  cinematic lighting | happy colors';
              """
      )
      with pytest.raises(Exception):
          self.wait_predictor("proj", "test_leonardo_invalid_model")
  
file_path: mindsdb/tests/unit/ml_handlers/test_leonardo_ai.py
imports: import os
  import pytest
  import pandas
  from unittest.mock import patch
  from .base_ml_test import BaseMLAPITest
label_desc: Use image node_id 3 for calling the TestLeonardoAI obj's underlying member method code with example usage: obj.test_invalid_model_parameter() without return types