code: def test_generated_columns_are_visible_in_datasette():
      with make_app_client(
          extra_databases={
              "generated.db": """
                  CREATE TABLE generated_columns (
                      body TEXT,
                      id INT GENERATED ALWAYS AS (json_extract(body, '$.number')) STORED,
                      consideration INT GENERATED ALWAYS AS (json_extract(body, '$.string')) STORED
                  );
                  INSERT INTO generated_columns (body) VALUES (
                      '{"number": 1, "string": "This is a string"}'
                  );"""
          }
      ) as client:
          response = client.get(
              "/generated/generated_columns.json?_shape=array"
          )
          assert response.json == [
              {
                  "rowid": 1,
                  "body": '{"number": 1, "string": "This is a string"}',
                  "id": 1,
                  "consideration": "This is a string",
              }
          ]
  
file_path: datasette/tests/test_table_api.py
imports: from datasette.utils import detect_json1
  from datasette.utils.sqlite import sqlite_version
  from .fixtures import app_client, app_client_with_trace, app_client_returned_rows_matches_page_size, generate_compound_rows, generate_sortable_rows, make_app_client
  import json
  import pytest
  import urllib
label_desc: Use image node_id 7 for calling a global function with example usage: test_generated_columns_are_visible_in_datasette() without return types