Skip to main content
FOSSA Logo
Skip to package details

pytest-mock

PyPI2k GitHub stars

v3.15.1 · Sep 2025 · MIT (top-level declared license)

pip install pytest-mock
  • No known CVEs
  • 100.4M downloads/mo
  • 66 versions

Description

Thin-wrapper around the mock package for easier use with pytest

Licenses

Declared license

MIT (top-level declared license of pytest-mock)

Transitive dependency licenses

pytest-mock pulls in 5 transitive dependencies across 3 distinct licenses, all permissive.

LicenseCategoryDependencies
MITPermissive3 of 5
Apache-2.0 OR BSD-2-ClausePermissive1 of 5
BSD-2-ClausePermissive1 of 5

This view is derived from declared package metadata, and a full FOSSA scan detects licenses that declared metadata misses. Scan free.

License and vulnerability information on this page is derived from public package metadata and public advisory databases. It is not legal advice, and it reflects the top-level declared license only. Verify the license and terms of any software for your own needs.

Need pytest-mock approved? Get the full license and vulnerability report for your codebase. Scan free.

Scan free

Vulnerabilities

No known CVEs across published versions

Version history

Published versions
VersionPublishedLicense
3.15.1Sep 2025MIT
3.15.0Sep 2025
3.14.1May 2025
3.14.0Mar 2024
3.13.0Mar 2024
3.12.0Oct 2023
3.11.1Jun 2023
3.11.0Jun 2023
3.10.0Oct 2022
3.9.0Sep 2022
3.8.2Jul 2022
3.8.1Jun 2022
3.8.0Jun 2022
3.7.0Jan 2022
3.6.1May 2021
3.6.0Apr 2021
3.5.1Jan 2021
3.5.0Jan 2021
3.4.0Dec 2020
3.3.1Aug 2020
3.3.0Aug 2020
3.2.0Jul 2020
3.1.1Jun 2020
3.1.0Apr 2020
3.0.0Mar 2020
25 older releases
Older published versions
VersionPublishedLicense
2.0.0Jan 2020
1.13.0Dec 2019
1.12.1Nov 2019
1.12.0Nov 2019
1.11.2Oct 2019
1.11.1Oct 2019
1.11.0Sep 2019
1.10.4Apr 2019
1.10.3Mar 2019
1.10.2Mar 2019
1.10.1Feb 2019
1.10.0May 2018
1.9.0Apr 2018
1.8.0Apr 2018
1.7.1Mar 2018
1.7.0Feb 2018
1.6.3Sep 2017
1.6.2Jul 2017
1.6.1Jul 2017
1.6.0Mar 2017
1.5.0Nov 2016
1.4.0Nov 2016
1.3.0Oct 2016
1.2.0Aug 2016
1.1.0Jun 2016

pip install pytest-mock resolves to the 3.x line today. Older major lines may still receive fixes.

Direct dependencies

1 direct dependency, 5 in total including transitive. Licenses across the full tree are summarized under Licenses.

Direct dependencies
PackageVersion rangeLicense
pytest>=6.2.5MIT

Based on what each package declares in its published metadata. The dependencies your build actually installs can differ, and a FOSSA scan of your project resolves the full tree.

Popularity

Downloads last month
100.4M
Known dependents in this corpus
703
GitHub stars
2k
OpenSSF score
5.4 / 10

FAQ

What is the latest version of pytest-mock?
The latest version of pytest-mock is 3.15.1, published September 2025.
What license is pytest-mock under?
pytest-mock declares MIT as its top-level declared license. Its dependency tree spans 3 distinct licenses.
Does pytest-mock have known vulnerabilities?
No known CVEs are recorded against published versions of pytest-mock.
How do I install pytest-mock?
Install pytest-mock with pip install pytest-mock.
How do I generate an SBOM that includes pytest-mock?
FOSSA's SBOM generator produces SPDX or CycloneDX output for a codebase that includes pytest-mock. Generate an SPDX or CycloneDX SBOM free.

Dependency graph and package metadata from deps.dev (Google Open Source Insights), used under CC BY 4.0.

Download counts from PyPI Stats, sourced from the Python Software Foundation download statistics. Counts cover the last 180 days and exclude known mirrors.

Repository stars from the GitHub API.

OpenSSF Scorecard results from deps.dev.

License and vulnerability information on this page is derived from public package metadata and public advisory databases. It is not legal advice, and it reflects the top-level declared license only. Verify the license and terms of any software for your own needs.