Run Python Tests
Automates Redisearch module testing via Python scripts, ensuring code quality and functionality within the backend.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add run-python-tests npx -- -y @trustedskills/run-python-tests
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"run-python-tests": {
"command": "npx",
"args": [
"-y",
"@trustedskills/run-python-tests"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to execute Python tests and retrieve their results. It can run test files or individual test functions, providing feedback on code quality and functionality directly within the agent's workflow. The output includes pass/fail status and any error messages generated during execution.
When to use it
- Automated Code Validation: Integrate testing into a development pipeline to ensure changes don’t introduce regressions.
- Debugging Assistance: Quickly execute specific test cases when troubleshooting code issues within the agent's environment.
- Continuous Integration: Run tests automatically after code modifications or deployments.
- Educational Purposes: Demonstrate and verify Python code snippets in a controlled testing environment.
Key capabilities
- Execute Python test files.
- Run individual test functions.
- Retrieve pass/fail status of tests.
- Capture and report error messages from test execution.
Example prompts
- "Run the tests in
my_project/tests/test_api.py." - "Execute the
test_loginfunction inuser_management/tests/test_users.py." - “Can you run this code and tell me if it passes: [code snippet with test cases]”
Tips & gotchas
- The agent needs access to the Python environment where the tests are located. Ensure all necessary dependencies are installed.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.