code: def test_tags(app, client):
      assert app.tags is None
      app.tags = [
          {
              "name": "foo",
              "description": "some description for foo",
              "externalDocs": {
                  "description": "Find more info about foo here",
                  "url": "https://docs.example.com/",
              },
          },
          {"name": "bar", "description": "some description for bar"},
      ]
  
      rv = client.get("/openapi.json")
      assert rv.status_code == 200
      validate_spec(rv.json)
      assert rv.json["tags"]
      assert {
          "name": "bar",
          "description": "some description for bar",
      } in rv.json["tags"]
      assert rv.json["tags"][0]["name"] == "foo"
      assert (
          rv.json["tags"][0]["description"]
          == "some description for foo"
      )
      assert (
          rv.json["tags"][0]["externalDocs"]["description"]
          == "Find more info about foo here"
      )
      assert (
          rv.json["tags"][0]["externalDocs"]["url"]
          == "https://docs.example.com/"
      )
  
file_path: apiflask/tests/test_openapi_tags.py
imports: import importlib
  import pytest
  from openapi_spec_validator import validate_spec
  from apiflask import APIBlueprint
label_desc: Use image node_id 1 for calling a global function with example usage: test_tags(app, client) without return types