mock

The Python mock library

https://github.com/testing-cabal/mock

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 107 committers (1.9%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.1%) to scientific vocabulary

Keywords from Contributors

templates views apps yapf pre-commit-hook gofmt formatter codeformatter autopep8 asyncio
Last synced: 10 months ago · JSON representation

Repository

The Python mock library

Basic Info
Statistics
  • Stars: 536
  • Watchers: 22
  • Forks: 105
  • Open Issues: 0
  • Releases: 0
Created about 11 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog License

README.rst

mock is a library for testing in Python. It allows you to replace parts of
your system under test with mock objects and make assertions about how they
have been used.

mock is now part of the Python standard library, available as `unittest.mock
`_ in Python 3.3
onwards.

This package contains a rolling backport of the standard library mock code
compatible with Python 3.6 and up.

Please see the standard library documentation for more details.

:Homepage: `Mock Homepage`_
:Download: `Mock on PyPI`_
:Documentation: `Python Docs`_
:License: `BSD License`_
:Support: `Mailing list (testing-in-python@lists.idyll.org)
 `_
:Code: `GitHub
 `_
:Issue tracker: `GitHub Issues
 `_
:Build status:
    |CircleCI|_ |Docs|_

    .. |CircleCI| image:: https://circleci.com/gh/testing-cabal/mock/tree/master.svg?style=shield
    .. _CircleCI: https://circleci.com/gh/testing-cabal/mock/tree/master

    .. |Docs| image:: https://readthedocs.org/projects/mock/badge/?version=latest
    .. _Docs: http://mock.readthedocs.org/en/latest/

.. _Mock Homepage: http://mock.readthedocs.org/en/latest/
.. _BSD License: https://github.com/testing-cabal/mock/blob/master/LICENSE.txt
.. _Python Docs: https://docs.python.org/dev/library/unittest.mock.html
.. _mock on PyPI: https://pypi.org/project/mock/

Owner

  • Name: testing-cabal
  • Login: testing-cabal
  • Kind: organization

GitHub Events

Total
  • Watch event: 7
  • Push event: 1
  • Pull request event: 2
  • Fork event: 1
  • Create event: 1
Last Year
  • Watch event: 7
  • Push event: 1
  • Pull request event: 2
  • Fork event: 1
  • Create event: 1

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 1,423
  • Total Committers: 107
  • Avg Commits per committer: 13.299
  • Development Distribution Score (DDS): 0.616
Past Year
  • Commits: 40
  • Committers: 16
  • Avg Commits per committer: 2.5
  • Development Distribution Score (DDS): 0.575
Top Committers
Name Email Commits
Michael Foord m****l@v****k 547
fuzzyman f****n@l****t 288
Chris Withers c****s@w****g 224
Michael Foord m****l@p****g 68
Robert Collins r****s@h****m 46
konryd k****d@l****t 28
Michael Foord m****d@p****g 22
Xtreak t****i@g****m 19
Serhiy Storchaka s****a@g****m 14
Nikita Sobolev m****l@s****e 12
Mario Corchero m****m@b****t 11
Kushal Das k****s@g****m 7
Lisa Roach l****4@g****m 6
Hugo h****k 6
Berker Peksag b****g@g****m 6
Jon Dufresne j****e@g****m 5
Antoine Pitrou s****s@p****t 4
Victor Stinner v****r@g****m 3
vabr-g v****r@g****m 3
Gregory P. Smith g****g@k****g 3
Kumar McMillan k****n@g****m 2
Matthew Suozzo m****o@g****m 2
Michael Fladischer F****l@f****t 2
Min ho Kim m****2@g****m 2
Raymond Hettinger p****n@r****m 2
lord63 l****j@g****m 2
infohash 4****h 2
Thomas Grainger t****n@g****m 2
Senthil Kumaran s****l@u****m 2
Samuel Freilich s****h@g****m 2
and 77 more...

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 71
  • Total pull requests: 34
  • Average time to close issues: 11 months
  • Average time to close pull requests: 2 months
  • Total issue authors: 57
  • Total pull request authors: 14
  • Average comments per issue: 4.51
  • Average comments per pull request: 1.29
  • Merged pull requests: 27
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 1
  • Average time to close issues: about 16 hours
  • Average time to close pull requests: 2 days
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • cjw296 (5)
  • GoogleCodeExporter (4)
  • doublethefish (3)
  • claudiubelu (3)
  • kloczek (2)
  • onovy (2)
  • jakirkham (2)
  • rsyring (1)
  • jturel (1)
  • bukowa (1)
  • justinessert (1)
  • peter-slovak (1)
  • hyzhak (1)
  • 5j9 (1)
  • banthar (1)
Pull Request Authors
  • cjw296 (20)
  • blag (2)
  • andriyor (1)
  • kmosiejczuk (1)
  • bulatb (1)
  • chrisconlon-klaviyo (1)
  • doublethefish (1)
  • hroncok (1)
  • cool-RR (1)
  • rohan-n (1)
  • eli-b (1)
  • habnabit (1)
  • smiller171 (1)
  • tirkarthi (1)
Top Labels
Issue Labels
incomplete (6) help wanted (4) upstream (4) fixed-upstream (4) bug (2) wontfix (1)
Pull Request Labels
fixed-upstream (2)

Packages

  • Total packages: 43
  • Total downloads:
    • pypi 26,442,679 last-month
  • Total docker downloads: 3,480,152,307
  • Total dependent packages: 2,020
    (may contain duplicates)
  • Total dependent repositories: 84,676
    (may contain duplicates)
  • Total versions: 109
  • Total maintainers: 9
pypi.org: mock

Rolling backport of unittest.mock for all Pythons

  • Versions: 40
  • Dependent Packages: 1,873
  • Dependent Repositories: 84,026
  • Downloads: 26,442,679 Last month
  • Docker Downloads: 3,480,152,307
Rankings
Dependent packages count: 0.0%
Dependent repos count: 0.0%
Docker downloads count: 0.0%
Downloads: 0.1%
Average: 1.6%
Stargazers count: 3.6%
Forks count: 5.8%
Last synced: 10 months ago
pkg.adelielinux.org: py3-mock

A Python Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 2.5%
Average: 2.8%
Forks count: 3.1%
Dependent packages count: 5.5%
Last synced: 10 months ago
alpine-v3.7: py3-mock

A Python Mocking and Patching Library for Testing (for python3)

  • Versions: 1
  • Dependent Packages: 3
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 4.0%
Stargazers count: 4.3%
Forks count: 4.9%
Dependent packages count: 6.9%
Last synced: 10 months ago
alpine-v3.6: py-mock

A Python Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 3
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 3.1%
Forks count: 3.7%
Average: 4.3%
Dependent packages count: 10.2%
Last synced: 10 months ago
alpine-v3.4: py-mock

A Python Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 1.9%
Forks count: 2.7%
Average: 4.3%
Dependent packages count: 12.7%
Last synced: 10 months ago
alpine-v3.10: py3-mock

A Python Mocking and Patching Library for Testing (for python3)

  • Versions: 1
  • Dependent Packages: 8
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 4.4%
Stargazers count: 5.5%
Dependent packages count: 6.1%
Forks count: 6.2%
Last synced: 10 months ago
alpine-v3.13: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 4
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 3.7%
Average: 4.6%
Stargazers count: 6.9%
Forks count: 7.6%
Last synced: 10 months ago
alpine-v3.7: py-mock

A Python Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 4.3%
Average: 4.6%
Forks count: 4.9%
Dependent packages count: 9.2%
Last synced: 10 months ago
alpine-v3.8: py-mock

A Python Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 3
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 4.8%
Average: 4.8%
Forks count: 5.4%
Dependent packages count: 9.0%
Last synced: 10 months ago
alpine-v3.8: py3-mock

A Python Mocking and Patching Library for Testing (for python3)

  • Versions: 1
  • Dependent Packages: 3
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 4.8%
Average: 4.8%
Forks count: 5.4%
Dependent packages count: 9.0%
Last synced: 10 months ago
alpine-v3.12: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 4.9%
Stargazers count: 6.2%
Forks count: 6.6%
Dependent packages count: 6.7%
Last synced: 10 months ago
alpine-v3.6: py3-mock

A Python Mocking and Patching Library for Testing (for python3)

  • Versions: 1
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 3.1%
Forks count: 3.7%
Average: 5.0%
Dependent packages count: 13.0%
Last synced: 10 months ago
alpine-v3.9: py-mock

A Python Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 5.1%
Stargazers count: 5.2%
Forks count: 5.8%
Dependent packages count: 9.3%
Last synced: 10 months ago
alpine-v3.9: py3-mock

A Python Mocking and Patching Library for Testing (for python3)

  • Versions: 1
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 5.1%
Stargazers count: 5.2%
Forks count: 5.8%
Dependent packages count: 9.3%
Last synced: 11 months ago
alpine-v3.11: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 5.2%
Stargazers count: 6.1%
Forks count: 6.5%
Dependent packages count: 8.1%
Last synced: 11 months ago
alpine-v3.5: py3-mock

A Python Mocking and Patching Library for Testing (for python3)

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 2.8%
Forks count: 3.3%
Average: 5.4%
Dependent packages count: 15.5%
Last synced: 10 months ago
alpine-v3.5: py-mock

A Python Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 2.8%
Forks count: 3.3%
Average: 5.4%
Dependent packages count: 15.5%
Last synced: 10 months ago
alpine-v3.18: py3-mock-pyc

Precompiled Python bytecode for py3-mock

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 5.6%
Stargazers count: 11.0%
Forks count: 11.2%
Last synced: 10 months ago
alpine-v3.18: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 5.6%
Stargazers count: 11.0%
Forks count: 11.2%
Last synced: 10 months ago
alpine-v3.7: py2-mock

A Python Mocking and Patching Library for Testing (for python2)

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 4.3%
Forks count: 4.9%
Average: 5.9%
Dependent packages count: 14.3%
Last synced: 10 months ago
alpine-v3.15: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 3
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 6.1%
Stargazers count: 7.7%
Dependent packages count: 8.2%
Forks count: 8.4%
Last synced: 10 months ago
spack.io: py-mock

mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.

  • Versions: 5
  • Dependent Packages: 12
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 4.7%
Average: 6.3%
Stargazers count: 9.8%
Forks count: 10.5%
Maintainers (1)
Last synced: over 1 year ago
alpine-v3.9: py2-mock

A Python Mocking and Patching Library for Testing (for python2)

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 5.2%
Forks count: 5.8%
Average: 6.4%
Dependent packages count: 14.6%
Last synced: 10 months ago
alpine-v3.10: py-mock

A Python Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 5.5%
Forks count: 6.2%
Average: 6.7%
Dependent packages count: 15.0%
Last synced: 10 months ago
alpine-v3.14: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 6.7%
Stargazers count: 7.1%
Forks count: 7.8%
Dependent packages count: 12.1%
Last synced: 10 months ago
alpine-v3.8: py2-mock

A Python Mocking and Patching Library for Testing (for python2)

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 4.8%
Forks count: 5.4%
Average: 6.8%
Dependent packages count: 16.9%
Last synced: 10 months ago
alpine-v3.17: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 4
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 7.2%
Dependent packages count: 7.9%
Stargazers count: 10.2%
Forks count: 10.7%
Last synced: 10 months ago
alpine-v3.5: py2-mock

A Python Mocking and Patching Library for Testing (for python2)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 2.8%
Forks count: 3.3%
Average: 7.5%
Dependent packages count: 24.1%
Last synced: 10 months ago
alpine-v3.6: py2-mock

A Python Mocking and Patching Library for Testing (for python2)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 3.1%
Forks count: 3.7%
Average: 8.5%
Dependent packages count: 27.1%
Last synced: 10 months ago
conda-forge.org: mock
  • Versions: 8
  • Dependent Packages: 78
  • Dependent Repositories: 325
Rankings
Dependent packages count: 1.0%
Dependent repos count: 1.7%
Average: 9.5%
Stargazers count: 17.2%
Forks count: 18.2%
Last synced: 11 months ago
alpine-edge: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 8
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 9.8%
Forks count: 12.2%
Stargazers count: 12.3%
Dependent packages count: 14.6%
Maintainers (1)
Last synced: 11 months ago
alpine-edge: py3-mock-pyc

Precompiled Python bytecode for py3-mock

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 9.8%
Forks count: 12.4%
Stargazers count: 12.6%
Dependent packages count: 14.4%
Maintainers (1)
Last synced: 11 months ago
alpine-v3.10: py2-mock

A Python Mocking and Patching Library for Testing (for python2)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 5.5%
Forks count: 6.2%
Average: 10.3%
Dependent packages count: 29.6%
Last synced: 10 months ago
alpine-v3.16: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Stargazers count: 8.4%
Forks count: 8.9%
Average: 11.1%
Dependent packages count: 27.3%
Last synced: 10 months ago
anaconda.org: mock
  • Versions: 5
  • Dependent Packages: 2
  • Dependent Repositories: 325
Rankings
Dependent repos count: 9.8%
Dependent packages count: 20.4%
Average: 22.9%
Stargazers count: 30.4%
Forks count: 31.0%
Last synced: 10 months ago
alpine-v3.20: py3-mock-pyc

Precompiled Python bytecode for py3-mock

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Last synced: 10 months ago
alpine-v3.21: py3-mock-pyc

Precompiled Python bytecode for py3-mock

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 10 months ago
alpine-v3.22: py3-mock-pyc

Precompiled Python bytecode for py3-mock

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 10 months ago
alpine-v3.22: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 10 months ago
alpine-v3.19: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Last synced: 10 months ago
alpine-v3.20: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Last synced: 10 months ago
alpine-v3.21: py3-mock

Python3 Mocking and Patching Library for Testing

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 10 months ago
alpine-v3.19: py3-mock-pyc

Precompiled Python bytecode for py3-mock

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Last synced: 10 months ago

Dependencies

setup.py pypi