AgentScope Test Fixture Generator
This skill generates ready-to-use test fixtures for AgentScope 2.0 projects. It helps developers quickly create mock data, example configurations, and test scaffolding for unit tests, integration tests, and documentation examples.
What this skill does
- Generates mock agent configurations with various model providers
- Creates test fixture files for common AgentScope patterns
- Produces example pipeline configurations
- Generates mock response data for testing
- Creates pytest-compatible test scaffolding
How to use
Run the generator script from this skill folder:
python3 scripts/generate_fixtures.py --output /path/to/test/fixtures --pattern sequential
Supported patterns:
sequential- single agent chain fixturesparallel- multi-agent parallel execution fixturesteam- team-based agent fixturesdialogue- multi-turn conversation fixtures
After generation:
cd /path/to/test/fixtures
pytest
Security notes
- Generated fixtures use placeholder API keys and mock responses
- No real credentials are embedded in generated files
- All generated configs are safe for CI environments
Troubleshooting
- If import fails, ensure agentscope is installed:
pip install agentscope - For model-specific fixtures, set the appropriate environment variable
- Generated tests require pytest:
pip install pytest
