code: def test_local_spec_path(app, cli_runner, tmp_path):
      local_spec_path = tmp_path / "api.json"
      app.config["LOCAL_SPEC_PATH"] = local_spec_path
  
      result = cli_runner.invoke(spec_command)
      assert "openapi" in result.output
      with open(local_spec_path) as f:
          assert json.loads(f.read()) == app.spec
  
file_path: apiflask/tests/test_settings_openapi_spec.py
imports: import json
  import pytest
  from apiflask import APIFlask
  from apiflask.commands import spec_command
label_desc: Use image node_id 4 for calling a global function with example usage: test_local_spec_path(app, cli_runner, tmp_path) without return types