{
  "id": "python/pytest-fixture-not-found",
  "signature": "fixture 'test_data' not found",
  "signature_zh": "未找到 fixture 'test_data'",
  "regex": "fixture\\ 'test_data'\\ not\\ found",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "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.",
  "root_cause_type": "generic",
  "root_cause_zh": "fixture 定义在 conftest.py 中，但该文件不在测试文件所在目录或其父目录中，或者 fixture 名称拼写错误。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If the fixture is needed by multiple tests in different files, it won't be available.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Fixture names are case-sensitive and must match exactly.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "Create conftest.py in the test directory and define the fixture there.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Verify the fixture name and that it's defined at module level.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}