pytest-mock
PyPI2k GitHub starsv3.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.
| License | Category | Dependencies |
|---|---|---|
| MIT | Permissive | 3 of 5 |
| Apache-2.0 OR BSD-2-Clause | Permissive | 1 of 5 |
| BSD-2-Clause | Permissive | 1 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 freeVulnerabilities
No known CVEs across published versions
Version history
| Version | Published | License |
|---|---|---|
| 3.15.1 | Sep 2025 | MIT |
| 3.15.0 | Sep 2025 | |
| 3.14.1 | May 2025 | |
| 3.14.0 | Mar 2024 | |
| 3.13.0 | Mar 2024 | |
| 3.12.0 | Oct 2023 | |
| 3.11.1 | Jun 2023 | |
| 3.11.0 | Jun 2023 | |
| 3.10.0 | Oct 2022 | |
| 3.9.0 | Sep 2022 | |
| 3.8.2 | Jul 2022 | |
| 3.8.1 | Jun 2022 | |
| 3.8.0 | Jun 2022 | |
| 3.7.0 | Jan 2022 | |
| 3.6.1 | May 2021 | |
| 3.6.0 | Apr 2021 | |
| 3.5.1 | Jan 2021 | |
| 3.5.0 | Jan 2021 | |
| 3.4.0 | Dec 2020 | |
| 3.3.1 | Aug 2020 | |
| 3.3.0 | Aug 2020 | |
| 3.2.0 | Jul 2020 | |
| 3.1.1 | Jun 2020 | |
| 3.1.0 | Apr 2020 | |
| 3.0.0 | Mar 2020 |
25 older releases
| Version | Published | License |
|---|---|---|
| 2.0.0 | Jan 2020 | |
| 1.13.0 | Dec 2019 | |
| 1.12.1 | Nov 2019 | |
| 1.12.0 | Nov 2019 | |
| 1.11.2 | Oct 2019 | |
| 1.11.1 | Oct 2019 | |
| 1.11.0 | Sep 2019 | |
| 1.10.4 | Apr 2019 | |
| 1.10.3 | Mar 2019 | |
| 1.10.2 | Mar 2019 | |
| 1.10.1 | Feb 2019 | |
| 1.10.0 | May 2018 | |
| 1.9.0 | Apr 2018 | |
| 1.8.0 | Apr 2018 | |
| 1.7.1 | Mar 2018 | |
| 1.7.0 | Feb 2018 | |
| 1.6.3 | Sep 2017 | |
| 1.6.2 | Jul 2017 | |
| 1.6.1 | Jul 2017 | |
| 1.6.0 | Mar 2017 | |
| 1.5.0 | Nov 2016 | |
| 1.4.0 | Nov 2016 | |
| 1.3.0 | Oct 2016 | |
| 1.2.0 | Aug 2016 | |
| 1.1.0 | Jun 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.
| Package | Version range | License |
|---|---|---|
| pytest | >=6.2.5 | MIT |
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.