Skip to content
Agentmart
Submit a tool

api-test

快速验证 Flask API 端点可用性,自动检测改动影响的接口并跑测试

Skill by Fishman-free

IndexedMIT★ 5
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/fishman-free-api-test

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

快速验证 Flask API 端点可用性,自动检测改动影响的接口并跑测试

Use cases: backend, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/api-test

What's inside

Skill name
api-test
Description
快速验证 Flask API 端点可用性,自动检测改动影响的接口并跑测试
License
MIT
Instructions
53 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# API 端点测试

## 使用方式

用户输入 `/api-test` 或 `/api-test <端点名称>` 快速验证接口。

## 工作流程

1. 检查 `routes/api.py` 最近改动,定位可能受影响的端点
2. 如果用户指定了端点名称,只跑对应的测试函数
3. 运行 `python -m pytest tests/test_api.py -v --tb=short -k "<关键词>"`
4. 报告结果:通过数 / 失败数 / 错误详情

## 常用命令

```bash
# 跑全部 API 测试
python -m pytest tests/test_api.py -v --tb=short

# 只跑对话相关端点
python -m pytest tests/test_api.py -v --tb=short -k "chat"

# 只跑图表相关端点
python -m pytest tests/test_api.py -v --tb=short -k "chart"

# 只跑 SSE 流相关端点
python -m pytest tests/test_api.py -v --tb=short -k "stream"

# 快速冒烟(只跑不报细节)
python -m pytest tests/test_api.py -q
```

## 接口覆盖清单

| 端点 | 测试关键词 |
|------|-----------|
| GET /api/ping | ping |
| POST /api/upload | upload |
| GET /api/data/summary | summary |
| GET /api/data/preview | preview |
| GET /api/data/preprocess-report | preprocess |
| GET /api/data/quality | quality |
| GET /api/insights | insight |
| POST /api/chart/generate | chart_generate |
| GET /api/analysis/<method> | analysis |
| POST /api/chat | chat |
| GET /api/chat/history | history |
| POST /api/chat/reset | reset |
| POST /api/report/generate | report |
| POST /api/plan/generate | plan |
| POST /api/report/story | story |

From Fishman-free/DataMind, MIT.

More from Fishman-free/DataMind

Signals

Stars
5
Forks
0
Open issues
0
Last commit (this folder)
May 25, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Fishman-free

Cite this page

api-test skill. Agent Mart. https://agentmart.dev/skills/fishman-free-api-test (last updated 2026-10-24)