agentscope-test-fixture-generator

Generate test fixtures, mock data, and example configurations for AgentScope 2.0 agents and pipelines. Use this when the user needs to test AgentScope code, create unit test data, or generate example agent configurations for development and CI.

Install

openclaw skills install @trend0522/agentscope-test-fixture-generator

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:

bash
python3 scripts/generate_fixtures.py --output /path/to/test/fixtures --pattern sequential

Supported patterns:

  • sequential - single agent chain fixtures
  • parallel - multi-agent parallel execution fixtures
  • team - team-based agent fixtures
  • dialogue - multi-turn conversation fixtures

After generation:

bash
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