Skip to main content

Mocking library for Python inspired by Google Mock C++ mocking toolkit

Project description

Mocking library for Python inspired by Google Mock C++ mocking toolkit.

About

The purpose of using Mockify is the same as for Python’s unittest.mock module - to mimic behaviour of things during testing. But Mockify uses a different approach to do that.

Mockify does not have multiple assert_called_* methods that are executed to check if a method was called. Instead, it uses expect_call method to record expectations on mocks before they are called, and after unit under test is executed, mocks are checked if all recorded expectations are satisfied using one assert_satisfied assertion method.

Documentation

Newest documentation can be found at https://mockify.readthedocs.org/.

Source

Source code is available at https://gitlab.com/zef1r/mockify/.

License

This software is released under the terms of the MIT license.

See LICENSE.txt for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mockify-0.2.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

mockify-0.2.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file mockify-0.2.1.tar.gz.

File metadata

  • Download URL: mockify-0.2.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for mockify-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5f00bb59b7c236a5c15adbe7183485932d63ac033e1d53ceb975a4e5d40e94cf
MD5 7f63f13b6bed4e3995cc7b3de73a11db
BLAKE2b-256 6b2f3858be203bcaae3d1123b7acbaf51acd4d30d0b6f12d7b38e6b289a29d38

See more details on using hashes here.

Provenance

File details

Details for the file mockify-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mockify-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for mockify-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8da493840d7ad7292f48dd1baa8d7474960d9c5430ac99a73b5b3256b097f30f
MD5 4b9d62249a995eedde47691a1e9ba69e
BLAKE2b-256 f253156f043f25a52bf0a1b41ffb11f8634f3e93d6c347f11f50c451488be962

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page