class_docstr: Test Class for Stability Integration Testing
class_docstr_tok: ["Test","Class","for","Stability","Integration","Testing"]
docstr: Test for unknown argument when creating a stability model
docstr_tok: ["Test","for","unknown","argument","when","creating","a","stability","model"]
code: def test_unknown_task_argument(self):
      """Test for unknown argument when creating a stability model"""
      self.run_sql(
          f"""
              CREATE MODEL proj.test_stability_invalid_model
              PREDICT answer
              USING
                  engine='stability_engine',
                  task = "unknown-task",
                  local_directory_path = "tests/unit/ml_handlers/data",
                  api_key='{self.get_api_key('STABILITY_API_KEY')}';
              """
      )
      with pytest.raises(Exception):
          self.wait_predictor("proj", "test_unknown_task_argument")
  
file_path: mindsdb/tests/unit/ml_handlers/test_stabilityai.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 TestStabilityAI obj's underlying member method code with example usage: obj.test_unknown_task_argument() without return types