| name | test-adapters-strip-yaml-frontmatter |
| description | This skill covers testing the _strip_yaml_frontmatter helper. Trigger: test_adapters.
|
| license | Apache-2.0 |
| metadata | {"author":"repoforge","version":"1.0","complexity":"low","token_estimate":350,"dependencies":[],"related_skills":[],"load_priority":"high"} |
test-adapters-strip-yaml-frontmatter
This skill covers testing the _strip_yaml_frontmatter helper.
Trigger: test_adapters.
Quick Reference
| Task | Pattern |
|---|
| Get users | get_users() |
| Sample skills | sample_skills |
Critical Patterns (Summary)
- Get Users: Retrieve user data for testing.
- Sample Skills: Access predefined skills for validation.
Critical Patterns (Detailed)
Get Users
This pattern retrieves user data for testing purposes using the get_users function.
users = get_users()
Sample Skills
This pattern accesses predefined skills for validation in tests.
skills = sample_skills
When to Use
- When validating user data in tests.
- When checking the integrity of sample skills.
Commands
pytest tests/test_adapters.py
Anti-Patterns
Don't: Use hardcoded values
Hardcoded values can lead to brittle tests that fail with changes in data.
assert user['name'] == 'John Doe'