Skip to content
Back to skills

Test Compressor

ASecurity

This skill covers patterns for creating fixtures to test compression passes. Trigger: Load this skill when working with test_compressor.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 26, 2026
ai-agentspythonbashtesting

Security analysis

A100/100

Scanned September 26, 2026

npx -y skills add JNZader/repoforge --skill test_compressor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Compressor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Compressor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jnzader-test-compressor/badge)](https://www.skillsdirectory.com/skills/jnzader-test-compressor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-compressor-fixtures
description: >
  This skill covers patterns for creating fixtures to test compression passes.
  Trigger: Load this skill when working with test_compressor.
license: Apache-2.0
metadata:
  author: repoforge
  version: "1.0"
  complexity: low
  token_estimate: 350
  dependencies: []
  related_skills: []
  load_priority: high
---

<!-- L1:START -->
# test-compressor-fixtures

This skill covers patterns for creating fixtures to test compression passes.

**Trigger**: Load this skill when working with test_compressor.
<!-- L1:END -->

<!-- L2:START -->
## Quick Reference

| Task | Pattern |
|------|---------|
| Create user fixture | `create_user` |
| Get user fixture | `get_user` |

## Critical Patterns (Summary)
- **Create User Fixture**: Use `create_user` to set up a user for testing.
- **Get User Fixture**: Utilize `get_user` to retrieve user data for tests.
<!-- L2:END -->

<!-- L3:START -->
## Critical Patterns (Detailed)

### Create User Fixture

Use `create_user` to set up a user for testing compression passes in your tests.

```python
from tests.test_compressor import create_user

user = create_user(name="Test User", email="test@example.com")
```

### Get User Fixture

Utilize `get_user` to retrieve user data for tests, ensuring the user exists before running tests.

```python
from tests.test_compressor import get_user

user = get_user(user_id=1)
```

## When to Use

- When you need to create a user for testing compression functionality.
- When you need to retrieve user data to validate compression results.

## Commands

```bash
pytest tests/test_compressor.py
```

## Anti-Patterns

### Don't: Hardcode User Data

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 -->

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.