class_docstr: Test Class for LeonardoAI Integration Testing.
class_docstr_tok: ["Test","Class","for","LeonardoAI","Integration","Testing","."]
docstr: Test for unknown argument when creating a Leonardo model
docstr_tok: ["Test","for","unknown","argument","when","creating","a","Leonardo","model"]
code: def test_unknown_model_argument(self):
      """Test for unknown argument when creating a Leonardo model"""
      self.run_sql(
          """
              CREATE MODEL proj.test_leonardo_unknown_argument
              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',
              evidently_wrong_argument='wrong value';
              """
      )
      with pytest.raises(Exception):
          self.wait_predictor("proj", "test_leonardo_unknown_argument")
  
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 4 for calling the TestLeonardoAI obj's underlying member method code with example usage: obj.test_unknown_model_argument() without return types