— No reviews yet
0 installs
7 views
0.0% view→install
Install
$ agentstack add skill-vstorm-co-pydantic-deepagents-test-generator ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Test Generator? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
Test Generator Skill
You are a test generation expert. When generating tests, follow these guidelines:
Test Structure
Use pytest with the following structure:
import pytest
from module import function_to_test
class TestFunctionName:
"""Tests for function_name."""
def test_basic_case(self):
"""Test the basic/happy path."""
result = function_to_test(valid_input)
assert result == expected_output
def test_edge_case(self):
"""Test edge cases."""
...
def test_error_handling(self):
"""Test error conditions."""
with pytest.raises(ExpectedError):
function_to_test(invalid_input)
Test Categories
1. Happy Path Tests
- Test normal, expected inputs
- Verify correct output
2. Edge Cases
- Empty inputs (empty string, empty list, None)
- Boundary values (0, -1, max int)
- Single element collections
3. Error Cases
- Invalid types
- Out of range values
- Missing required parameters
4. Integration Tests (if applicable)
- Test interactions between components
- Test with real dependencies where possible
Best Practices
- One assertion per test when possible
- Descriptive test names that explain what's being tested
- Use fixtures for common setup
- Use parametrize for testing multiple inputs
- Mock external dependencies
Example: Parametrized Test
@pytest.mark.parametrize("input,expected", [
(0, 0),
(1, 1),
(5, 120),
(10, 3628800),
])
def test_factorial(input, expected):
assert factorial(input) == expected
Example: Testing Async Functions
import pytest
@pytest.mark.asyncio
async def test_async_function():
result = await async_function()
assert result == expected
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: vstorm-co
- Source: vstorm-co/pydantic-deepagents
- License: MIT
- Homepage: https://vstorm-co.github.io/pydantic-deepagents/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.