← 返回 Skills 市场
shenghoo123-png

test-fixture-generator

作者 shenghoo123-png · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
86
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install test-fixture-generator
功能描述
Automatically generate pytest fixtures for databases, API mocks, and file handling with setup and teardown support.
安全使用建议
This package appears to implement what it claims (a pytest fixture generator) but there are a few red flags to check before installing or running it: - Dependency mismatch: README claims 'zero dependencies' but generated templates import many third‑party libraries (mysql.connector, psycopg2, requests_mock, httpx, boto3/moto, etc.). Expect to install those libraries if you use the generated fixtures. - Packaging/CLI mismatch: SKILL.md instructs running `python -m test_fixture_generator ...`, but there is no __main__.py and cli.py uses absolute imports. Try running the CLI via `python cli.py` from the package root or add a proper entry point/__main__.py; verify the package installs a console_script entrypoint if you expect `test_fixture_generator` to be runnable. - Hardcoded example creds: DB templates include example credentials (localhost/test_user/test_password). Treat these as examples only; do not use them in production and do not assume they reflect your real environment. - Inspect boto3/AWS templates: part of generator.py was truncated in the review; open and read the boto3/moto template to confirm it only sets up mocks and does not attempt credential discovery or make external AWS calls. - Run in isolation: run the code and tests in a sandboxed or virtualenv environment so missing/incorrect imports or unexpected behavior won't affect your system. If you plan to use this skill, ask the author to: correct the README dependency claims, add a proper __main__.py or console entrypoint and package-relative imports, and remove or clearly label any hardcoded credentials. If those fixes are not possible, treat the package as a local development helper rather than a drop-in CLI tool.
功能分析
Type: OpenClaw Skill Name: test-fixture-generator Version: 1.0.0 The test-fixture-generator skill is a legitimate utility designed to generate boilerplate pytest fixture code for databases, API mocks, and file handling. The implementation in generator.py and cli.py uses standard Python libraries (argparse, pathlib) to produce well-structured test code based on hardcoded templates. No evidence of data exfiltration, malicious execution, or prompt injection was found; the tool's behavior aligns perfectly with its stated purpose of assisting developers in setting up test environments.
能力评估
Purpose & Capability
The generator produces pytest fixtures for DB, API mocks, file handling and random data as advertised. However templates include third-party imports (mysql.connector, psycopg2, requests_mock, httpx, boto3/moto, etc.) while README claims 'zero dependencies' — that is inconsistent and misleading. Templates also embed example DB credentials (localhost/test_user/test_password), which are harmless as defaults but should not be treated as real secrets.
Instruction Scope
SKILL.md and README instruct using `python -m test_fixture_generator ...`. The package files provided do not include a __main__.py and cli.py uses absolute imports (`from generator import ...`) instead of package-relative imports (`from .generator import ...`), so running the CLI exactly as documented may fail depending on how the package is installed. The SKILL.md does not direct the agent to read unrelated files or secrets.
Install Mechanism
There is no install spec (instruction-only), which minimizes installation risks. However the skill bundle contains runnable Python code (cli.py, generator.py, tests) — so although nothing is downloaded at install time, the included code will be written to disk when the skill package is installed or inspected. No external download URLs or archive extracts are used.
Credentials
The skill does not request environment variables or credentials. That is proportionate. Caveat: generated templates reference external services/libraries and include example credentials for local DB connections; those are not requested from the environment but could confuse users into using hardcoded values.
Persistence & Privilege
The skill does not request permanent/always-on privileges (always: false) and does not declare modifications to other skills or system-wide settings. Allowing autonomous invocation is the platform default and unremarkable here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install test-fixture-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /test-fixture-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug test-fixture-generator
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

test-fixture-generator 是什么?

Automatically generate pytest fixtures for databases, API mocks, and file handling with setup and teardown support. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 86 次。

如何安装 test-fixture-generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install test-fixture-generator」即可一键安装,无需额外配置。

test-fixture-generator 是免费的吗?

是的,test-fixture-generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

test-fixture-generator 支持哪些平台?

test-fixture-generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 test-fixture-generator?

由 shenghoo123-png(@shenghoo123-png)开发并维护,当前版本 v1.0.0。

💬 留言讨论