{
  "id": "python/pytest-marker-unknown",
  "signature": "PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register it with markers option",
  "signature_zh": "PytestUnknownMarkWarning: 未知的 pytest.mark.slow - 是拼写错误吗？你可以使用 markers 选项注册它",
  "regex": "PytestUnknownMarkWarning:\\ Unknown\\ pytest\\.mark\\.slow\\ \\-\\ is\\ this\\ a\\ typo\\?\\ You\\ can\\ register\\ it\\ with\\ markers\\ option",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A custom marker is used in tests but not registered in pytest configuration, causing a warning during collection.",
  "root_cause_type": "generic",
  "root_cause_zh": "测试中使用了自定义标记，但未在 pytest 配置中注册，导致收集期间出现警告。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This removes useful metadata for test selection and organization.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The warning may escalate to an error in future pytest versions, and it hides potential typos.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Register the marker in pytest.ini: `[pytest]\nmarkers =\n    slow: marks tests as slow`",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Use `pytest --markers` to list all registered markers and ensure the custom one is defined.",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-12-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}