{"adoption": {"forks": 168, "observed_at": "2026-08-28T04:06:08.305421+00:00", "stars": 2039}, "canonical_url": "https://ross.abutalabs.com/products/pytest-mock", "card": {"archived": false, "artifact_type": "plugin", "description": "Thin-wrapper around the mock package for easier use with pytest", "domain": ["testing", "developer-tools"], "enriched": true, "function": ["mocking", "testing"], "health_score": 95, "homepage": "https://pytest-mock.readthedocs.io/en/latest/", "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["pytest-dev/pytest-mock"], "name": "pytest-dev/pytest-mock", "platform": ["python", "cli"], "pushed_at": "2026-08-25T09:56:02+00:00", "repo": "pytest-dev/pytest-mock", "stars": 2039, "tags": ["pytest-plugin", "pytest-fixture", "test-doubles", "spy", "stub"], "topics": ["pytest", "mock", "hacktoberfest"], "urls": [], "use_cases": ["mock functions in pytest tests", "patch os.remove in a unit test", "spy on method calls during testing", "create stubs for pytest test cases", "automatically undo patches after each test", "replace unittest.mock boilerplate in pytest"], "what_it_is": "A pytest plugin that provides a `mocker` fixture wrapping the mock package's patching API. It automatically undoes mocks after each test and adds utilities like spy and stub with pytest-style introspection.", "when_to_avoid": ["you don't use pytest as your test runner", "you need mocking features outside of pytest", "you already prefer raw unittest.mock with no wrapper"], "when_to_choose": ["you write tests with pytest and need mocking", "you want automatic patch cleanup between tests", "you prefer a fixture-based API over context managers and decorators"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pytest-mock", "repo": "pytest-dev/pytest-mock", "role": "main", "score": 77}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:59:12.992536+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9548e72b99d295f0dbe242f5f6cfb29aee432f406b957f950a2749b77881ca4e", "fetched_at": "2026-08-28T04:06:08.305421+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytest-dev/pytest-mock"}, {"content_hash": "0b8ac2b01ec677c6bd351e1b87a146b44b86b3c43911a28dab7d6d69bb03269c", "fetched_at": "2026-08-29T10:39:15.122191+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytest-mock/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:59:12.992536+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9548e72b99d295f0dbe242f5f6cfb29aee432f406b957f950a2749b77881ca4e", "fetched_at": "2026-08-28T04:06:08.305421+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytest-dev/pytest-mock"}, {"content_hash": "0b8ac2b01ec677c6bd351e1b87a146b44b86b3c43911a28dab7d6d69bb03269c", "fetched_at": "2026-08-29T10:39:15.122191+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytest-mock/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:59:12.992536+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9548e72b99d295f0dbe242f5f6cfb29aee432f406b957f950a2749b77881ca4e", "fetched_at": "2026-08-28T04:06:08.305421+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytest-dev/pytest-mock"}, {"content_hash": "0b8ac2b01ec677c6bd351e1b87a146b44b86b3c43911a28dab7d6d69bb03269c", "fetched_at": "2026-08-29T10:39:15.122191+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytest-mock/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:59:12.992536+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9548e72b99d295f0dbe242f5f6cfb29aee432f406b957f950a2749b77881ca4e", "fetched_at": "2026-08-28T04:06:08.305421+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytest-dev/pytest-mock"}, {"content_hash": "0b8ac2b01ec677c6bd351e1b87a146b44b86b3c43911a28dab7d6d69bb03269c", "fetched_at": "2026-08-29T10:39:15.122191+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytest-mock/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:59:12.992536+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9548e72b99d295f0dbe242f5f6cfb29aee432f406b957f950a2749b77881ca4e", "fetched_at": "2026-08-28T04:06:08.305421+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytest-dev/pytest-mock"}, {"content_hash": "0b8ac2b01ec677c6bd351e1b87a146b44b86b3c43911a28dab7d6d69bb03269c", "fetched_at": "2026-08-29T10:39:15.122191+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytest-mock/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:59:12.992536+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9548e72b99d295f0dbe242f5f6cfb29aee432f406b957f950a2749b77881ca4e", "fetched_at": "2026-08-28T04:06:08.305421+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytest-dev/pytest-mock"}, {"content_hash": "0b8ac2b01ec677c6bd351e1b87a146b44b86b3c43911a28dab7d6d69bb03269c", "fetched_at": "2026-08-29T10:39:15.122191+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytest-mock/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:08.305421+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:59:12.992536+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9548e72b99d295f0dbe242f5f6cfb29aee432f406b957f950a2749b77881ca4e", "fetched_at": "2026-08-28T04:06:08.305421+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytest-dev/pytest-mock"}, {"content_hash": "0b8ac2b01ec677c6bd351e1b87a146b44b86b3c43911a28dab7d6d69bb03269c", "fetched_at": "2026-08-29T10:39:15.122191+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytest-mock/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:59:12.992536+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9548e72b99d295f0dbe242f5f6cfb29aee432f406b957f950a2749b77881ca4e", "fetched_at": "2026-08-28T04:06:08.305421+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytest-dev/pytest-mock"}, {"content_hash": "0b8ac2b01ec677c6bd351e1b87a146b44b86b3c43911a28dab7d6d69bb03269c", "fetched_at": "2026-08-29T10:39:15.122191+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytest-mock/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:59:12.992536+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9548e72b99d295f0dbe242f5f6cfb29aee432f406b957f950a2749b77881ca4e", "fetched_at": "2026-08-28T04:06:08.305421+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytest-dev/pytest-mock"}, {"content_hash": "0b8ac2b01ec677c6bd351e1b87a146b44b86b3c43911a28dab7d6d69bb03269c", "fetched_at": "2026-08-29T10:39:15.122191+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytest-mock/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:59:12.992536+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9548e72b99d295f0dbe242f5f6cfb29aee432f406b957f950a2749b77881ca4e", "fetched_at": "2026-08-28T04:06:08.305421+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytest-dev/pytest-mock"}, {"content_hash": "0b8ac2b01ec677c6bd351e1b87a146b44b86b3c43911a28dab7d6d69bb03269c", "fetched_at": "2026-08-29T10:39:15.122191+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytest-mock/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 36}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4431, "days_push": 8, "days_rel": 351, "gap_med": 56.0, "n_releases_24m": 3}, "score": 77, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}