# FixtureLookupError: fixture 'db' not found in available fixtures: ['tmpdir', 'capsys']

- **ID:** `python/pytest-fixure-order-error`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

测试函数引用了未定义的 fixture 名称

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 7.4.0 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   @pytest.fixture
def db(): ...
   ```
2. **** (85% success)
   ```
   确保 fixture 名称一致
   ```

## Dead Ends

- **** — 可能与其他 fixture 冲突 (40% fail)
- **** — pytest 不支持该参数 (90% fail)
