docstr: Saved Query API: Test update
code: def test_update_saved_query(self):
      """
      Saved Query API: Test update
      """
      saved_query = (
          db.session.query(SavedQuery)
          .filter(SavedQuery.label == "label1")
          .all()[0]
      )
  
      put_data = {
          "schema": "schema_changed",
          "label": "label_changed",
      }
  
      self.login(username="admin")
      uri = f"api/v1/saved_query/{saved_query.id}"
      rv = self.client.put(uri, json=put_data)
      assert rv.status_code == 200
  
      model = db.session.query(SavedQuery).get(saved_query.id)
      assert model.label == "label_changed"
      assert model.schema == "schema_changed"
  
imports: import json
  from datetime import datetime
  from io import BytesIO
  from typing import Optional
  from zipfile import is_zipfile, ZipFile
  import yaml
  import pytest
  import prison
  from freezegun import freeze_time
  from sqlalchemy.sql import func, and_
  import tests.integration_tests.test_app
  from superset import db
  from superset.models.core import Database
  from superset.models.core import FavStar
  from superset.models.sql_lab import SavedQuery
  from superset.utils.database import get_example_database
  from tests.integration_tests.base_tests import SupersetTestCase
  from tests.integration_tests.fixtures.importexport import database_config, saved_queries_config, saved_queries_metadata_config
label_desc: Use image node_id 24 for calling the TestSavedQueryApi obj's underlying member method code with example usage: obj.test_update_saved_query() without return types