code: def test_update_database(client):
      database_data = {
          "database": {
              "name": "test_update",
              "engine": "postgres",
              "parameters": {},
          }
      }
  
      updated_data = {
          "database": {
              "parameters": {
                  "user": "bearO",
                  "password": "destroydestroydestroy",
              }
          }
      }
      client.post(
          "/api/databases", json=database_data, follow_redirects=True
      )
      response = client.put(
          "/api/databases/test_update",
          json=updated_data,
          follow_redirects=True,
      )
  
      assert "200" in response.status
  
      updated_db = response.get_json()
      expected_db = {
          "name": "test_update",
          "engine": "postgres",
          "type": "data",
          "connection_data": {
              "user": "bearO",
              "password": "destroydestroydestroy",
          },
          "id": updated_db["id"],
          "date_last_update": updated_db["date_last_update"],
      }
  
      assert updated_db == expected_db
  
imports: import os
  import pytest
  from tempfile import TemporaryDirectory
  from mindsdb.api.http.initialize import initialize_app
  from mindsdb.interfaces.storage import db
  from mindsdb.migrations import migrate
  from mindsdb.utilities.config import Config
label_desc: Use image node_id 11 for calling a global function with example usage: test_update_database(client) without return types