# fixture 'test_data' not found

- **ID:** `python/pytest-fixture-not-found`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The fixture is defined in a conftest.py file that is not in the same directory or a parent directory of the test file, or the fixture name is misspelled.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (98% success)
   ```
   Create conftest.py in the test directory and define the fixture there.
   ```
2. **** (90% success)
   ```
   Verify the fixture name and that it's defined at module level.
   ```

## Dead Ends

- **** — If the fixture is needed by multiple tests in different files, it won't be available. (50% fail)
- **** — Fixture names are case-sensitive and must match exactly. (80% fail)
