← Back to Skills Marketplace
test-fixture-generator
by
shenghoo123-png
· GitHub ↗
· v1.0.0
· MIT-0
86
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install test-fixture-generator
Description
Automatically generate pytest fixtures for databases, API mocks, and file handling with setup and teardown support.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install test-fixture-generator - After installation, invoke the skill by name or use
/test-fixture-generator - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Frequently Asked Questions
What is test-fixture-generator?
Automatically generate pytest fixtures for databases, API mocks, and file handling with setup and teardown support. It is an AI Agent Skill for Claude Code / OpenClaw, with 86 downloads so far.
How do I install test-fixture-generator?
Run "/install test-fixture-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is test-fixture-generator free?
Yes, test-fixture-generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does test-fixture-generator support?
test-fixture-generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created test-fixture-generator?
It is built and maintained by shenghoo123-png (@shenghoo123-png); the current version is v1.0.0.
More Skills