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.1.12.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

mockify-0.1.12-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mockify-0.1.12.tar.gz
  • Upload date:
  • Size: 10.5 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.1.12.tar.gz
Algorithm Hash digest
SHA256 56d96cfedbfb3e6d7f809f2653671975cd5e75f85c96a5d02bc2577ee1f453db
MD5 ebf8d92d8cebab013926a7cbadc015a3
BLAKE2b-256 aab1ce2f607e004dbc7eeda8c875e9b90d1967b1208aafbb865a46cc8bb3c6a5

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mockify-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 15.3 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.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 9bd6732fa2228cff6c037b302f40dcd66845f84ce6df2c5ede249858d9e71912
MD5 632c64e8bc07f82821283a2b96262991
BLAKE2b-256 eb3e2f6f6278e2c76822040e8f2f7017e9ce5d88e6fb94c39b7c8df4d76265ba

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