class_docstr: Test Class for Stability Integration Testing
class_docstr_tok: ["Test","Class","for","Stability","Integration","Testing"]
docstr: Test for single text
docstr_tok: ["Test","for","single","text"]
code: def test_text_image_single(self):
      """Test for single text"""
      self.run_sql(
          f"""
              CREATE MODEL proj.test_stability_t2i_single
              PREDICT answer
              USING
                  engine='stability_engine',
                  task = "text-to-image",
                  local_directory_path = "tests/unit/ml_handlers/data",
                  api_key='{self.get_api_key('STABILITY_API_KEY')}';
              """
      )
      self.wait_predictor("proj", "test_stability_t2i_single")
  
      result_df = self.run_sql(
          """
              SELECT *
              FROM proj.test_stability_t2i_single
              WHERE text = 'A blue lagoon';
          """
      )
      assert result_df["answer"].size == 1
  
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 5 for calling the TestStabilityAI obj's underlying member method code with example usage: obj.test_text_image_single() without return types