---
name: jnzader/test-security-fixtures
source: https://app.decimal.ai/s/jnzader-test-security-fixtures@1/SKILL.md
source_sha256: 62925339a777
---

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

This skill covers patterns for testing security using crafted content.

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

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

| Task | Pattern |
|------|---------|
| Get users for testing | `get_users()` |
| Scan for vulnerabilities | `scanner()` |

## Critical Patterns (Summary)
- **Get Users**: Retrieve user data for security tests.
- **Vulnerability Scanner**: Execute a scan to identify security issues.
<!-- L2:END -->

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

### Get Users for Testing

This pattern retrieves user data necessary for conducting security tests.

```python
# Example of retrieving users
users = get_users()
```

### Vulnerability Scanner

This pattern executes a scan to identify potential security vulnerabilities in the application.

```python
# Example of running the scanner
results = scanner()
```

## When to Use

- When you need user data for security testing.
- When scanning for vulnerabilities in your application.

## Commands

```bash
pytest tests/test_security.py
```

## Anti-Patterns

### Don't: Hardcode User Data

Hardcoding user data can lead to security risks and unreliable tests.

```python
# BAD
users = ["admin", "user1", "user2"]
```
<!-- L3:END -->