Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill covers patterns for creating fixtures to test compression passes. Trigger: Load this skill when working with test_compressor.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -61% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -57% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -49% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -79% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -39% | 0% |
<!-- L1:START -->
This skill covers patterns for creating fixtures to test compression passes.
Trigger: Load this skill when working with test_compressor. <!-- L1:END -->
<!-- L2:START -->
| Task | Pattern | |------|---------| | Create user fixture | create_user | | Get user fixture | get_user |
create_user to set up a user for testing.get_user to retrieve user data for tests.<!-- L2:END -->
<!-- L3:START -->
Use create_user to set up a user for testing compression passes in your tests.
pythonfrom tests.test_compressor import create_user user = create_user(name="Test User", email="test@example.com")
Utilize get_user to retrieve user data for tests, ensuring the user exists before running tests.
pythonfrom tests.test_compressor import get_user user = get_user(user_id=1)
bashpytest tests/test_compressor.py
Hardcoding user data can lead to brittle tests that fail when data changes.
python# BAD user = create_user(name="Hardcoded User", email="hardcoded@example.com")
<!-- L3:END -->
Other measured skills in the registry, with their headline benchmark lift.